Create HouseTextureMapping
This commit is contained in:
1 parent
9f322bccba
commit
de8a8e8d2b
80 files changed
+4942
No files matched your search
@@ -0,0 +1,31 @@
|
||||
// Material.h: interface for the CMaterial class.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
#if !defined(AFX_MATERIAL_H__1161180E_9A92_4DAE_AB2E_757671AB6E12__INCLUDED_)
|
||||
#define AFX_MATERIAL_H__1161180E_9A92_4DAE_AB2E_757671AB6E12__INCLUDED_
|
||||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
#include "RGB.h"
|
||||
|
||||
class CMaterial
|
||||
{
|
||||
public:
|
||||
CMaterial();
|
||||
virtual ~CMaterial();
|
||||
void SetAmbient(CRGB);//设置材质对环境光的反射率
|
||||
void SetDiffuse(CRGB);//设置材质对漫反射光的反射率
|
||||
void SetSpecular(CRGB);//设置材质对镜面反射光的反射率
|
||||
void SetEmit(CRGB);//设置材质自身辐射的颜色
|
||||
void SetExp(double);//设置材质的高光指数
|
||||
public:
|
||||
CRGB M_Ambient;//材质对环境光的反射率
|
||||
CRGB M_Diffuse;//材质对漫反射光的反射率
|
||||
CRGB M_Specular;//材质对镜面反射光的反射率
|
||||
CRGB M_Emit;//材质自身发散的颜色
|
||||
double M_n;//材质的高光指数
|
||||
};
|
||||
|
||||
#endif // !defined(AFX_MATERIAL_H__1161180E_9A92_4DAE_AB2E_757671AB6E12__INCLUDED_)
|
||||
Reference in new issue
Block a user