ULRE/inc/hgl/graph/material/PBRMaterial.h
hyzboy 818946a7e7 1.delete MaterialData.h
2.add StandardMaterial and PBRMaterial
2020-01-14 18:09:40 +08:00

24 lines
723 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef HGL_GRAPH_MATERIAL_PBR_INCLUDE
#define HGL_GRAPH_MATERIAL_PBR_INCLUDE
#include<hgl/graph/material/Material.h>
MATERIAL_NAMESPACE_BEGIN
/**
* 标准PBR材质<br>
* BaseColor/Normal/Metallic/Roughness四个属性必须都有。如未提供则会使用const方式提供一个数值
*/
class PBRMaterial:public Material
{
public:
PBRMaterial(const UTF8String & n,
const BlendMode & bm =BlendMode::Opaque,
const bool ts =false,
const bool wf =false):
Material(n,MCC_CNMR,bm,ts,wf){}
virtual ~PBRMaterial()=default;
};//class PBRMaterial:public Material
MATERIAL_NAMESPACE_END
#endif//HGL_GRAPH_MATERIAL_PBR_INCLUDE