File indexing completed on 2025-01-18 10:04:42
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #ifndef _RWGltf_MaterialCommon_HeaderFile
0016 #define _RWGltf_MaterialCommon_HeaderFile
0017
0018 #include <Image_Texture.hxx>
0019 #include <Quantity_ColorRGBA.hxx>
0020
0021
0022 class RWGltf_MaterialCommon : public Standard_Transient
0023 {
0024 public:
0025
0026 Handle(Image_Texture) AmbientTexture;
0027 Handle(Image_Texture) DiffuseTexture;
0028 Handle(Image_Texture) SpecularTexture;
0029 TCollection_AsciiString Id;
0030 TCollection_AsciiString Name;
0031 Quantity_Color AmbientColor;
0032 Quantity_Color DiffuseColor;
0033 Quantity_Color SpecularColor;
0034 Quantity_Color EmissiveColor;
0035 Standard_ShortReal Shininess;
0036 Standard_ShortReal Transparency;
0037
0038 RWGltf_MaterialCommon()
0039 : AmbientColor (0.1, 0.1, 0.1, Quantity_TOC_sRGB),
0040 DiffuseColor (0.8, 0.8, 0.8, Quantity_TOC_sRGB),
0041 SpecularColor(0.2, 0.2, 0.2, Quantity_TOC_sRGB),
0042 EmissiveColor(Quantity_NOC_BLACK),
0043 Shininess (1.0f),
0044 Transparency (0.0f) {}
0045
0046 };
0047
0048 #endif