西昌.何雨锋
[specular 镜子] [Ambient 周围] [Diffuse 散播] [Emissive 放射性的] [Opacity 透明度] [Reduced 减少简化]
[Refraction 折射] [Scatter 分散] [Absorption 吸收]
问题:
PRT代表什么材质或技术?
int CreateMaterial(const char* matname = NULL);
//建立一种材质
int CreateLightMaterial(float red, float green, float blue, float alpha, float fAmbientLevel = 0.4f, float fSpecularLevel = 0.3f, char* name = NULL);
//建立灯光材质
int CreateMaterialQuick(float r, float g, float b, float a, const char* matname);
//建立快速材质
void SetSpecular(int iMaterialIndex, float r, float g, float b, float a);
//设置表面光滑度
void SetAmbient(int iMaterialIndex, float r, float g, float b, float a);
//设置周围度
void SetDiffuse(int iMaterialIndex, float r, float g, float b, float a);
//设置散播度
void SetEmissive(int iMaterialIndex, float r, float g, float b, float a);
//设置放射性
void SetPower(int iMaterialIndex, float power);
//设置威力
cTV_COLOR GetSpecular(int iMaterialIndex);
cTV_COLOR GetAmbient(int iMaterialIndex);
cTV_COLOR GetDiffuse(int iMaterialIndex);
cTV_COLOR GetEmissive(int iMaterialIndex);
float GetPower(int iMaterialIndex);
void DeleteAllMaterials();
void DeleteMaterial(int iMaterialIndex);
int GetMaterialByName(const char* matName);
int GetCount();
int GetActiveCount();
bool IsMaterialActive(int iMaterialIndex);
char* GetMaterialName(int iMaterialIndex);
void SetOpacity(int iMaterial, float fAlpha);
//设置材质的透明度
float GetOpacity(int iMaterial);
//得到材质透明度
// prt methods
void EnablePRTSubSurface(int iMaterial, bool bEnablePRTSubS);
//
void SetPRTSubSurfAbsorption(int iMaterial, float fRed, float fGreen, float fBlue);
//设置RTS吸收
void SetPRTSubSurfReducedScattering(int iMaterial, float fRed, float fGreen, float fBlue );
//设置PRT的减少与简化
void SetPRTSubSurfRefractionIndexRatio(int iMaterial, float fRatio);
//设置折射
int Duplicate(int iMaterial, char* sNewMaterialName = NULL);
//复制为一种新材质
void SetMaterialName(int iMaterialIndex, const char* sMaterialName);
//设置名称
};