Material.cpp
资源名称:Jhy3D.rar [点击查看]
上传用户:eehhbb
上传日期:2022-08-03
资源大小:2550k
文件大小:1k
源码类别:
OpenGL
开发平台:
Visual C++
- // Material.cpp: implementation of the CMaterial class.
- //
- //////////////////////////////////////////////////////////////////////
- #include "stdafx.h"
- #include "jhy3d.h"
- #include "Material.h"
- #ifdef _DEBUG
- #undef THIS_FILE
- static char THIS_FILE[]=__FILE__;
- #define new DEBUG_NEW
- #endif
- //////////////////////////////////////////////////////////////////////
- // Construction/Destruction
- //////////////////////////////////////////////////////////////////////
- CMaterial::CMaterial()
- {
- m_vEmission[0] = 0.0;
- m_vEmission[1] = 0.0;
- m_vEmission[2] = 0.0;
- m_vEmission[3] = 1.0;
- m_vShininess = 0.0;
- m_vSpecular[0] = 0.0;
- m_vSpecular[1] = 0.0;
- m_vSpecular[2] = 0.0;
- m_vSpecular[3] = 1.0;
- m_vDiffuse[0] = 0.8;
- m_vDiffuse[1] = 0.8;
- m_vDiffuse[2] = 0.8;
- m_vDiffuse[3] = 1.0;
- m_vAmbient[0] = 0.2;
- m_vAmbient[1] = 0.2;
- m_vAmbient[2] = 0.2;
- m_vAmbient[3] = 1.0;
- }
- CMaterial::~CMaterial()
- {
- }