1 // Author: Kirill Gavrilov
2 // Copyright (c) 2015-2019 OPEN CASCADE SAS
4 // This file is part of Open CASCADE Technology software library.
6 // This library is free software; you can redistribute it and/or modify it under
7 // the terms of the GNU Lesser General Public License version 2.1 as published
8 // by the Free Software Foundation, with special exception defined in the file
9 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10 // distribution for complete text of the license and disclaimer of any warranty.
12 // Alternatively, this file may be used under the terms of Open CASCADE
13 // commercial license or contractual agreement.
15 #ifndef _RWObj_Material_HeaderFile
16 #define _RWObj_Material_HeaderFile
18 #include <Quantity_Color.hxx>
19 #include <TCollection_AsciiString.hxx>
21 //! Material definition for OBJ file format.
24 TCollection_AsciiString Name; //!< material name (identifier) as defined in MTL file
25 TCollection_AsciiString DiffuseTexture; //!< path to the texture image file defining diffuse color
26 TCollection_AsciiString SpecularTexture; //!< path to the texture image file defining specular color
27 TCollection_AsciiString BumpTexture; //!< path to the texture image file defining normal map
28 Quantity_Color AmbientColor;
29 Quantity_Color DiffuseColor;
30 Quantity_Color SpecularColor;
31 Standard_ShortReal Shininess;
32 Standard_ShortReal Transparency;
35 : AmbientColor (0.1, 0.1, 0.1, Quantity_TOC_sRGB),
36 DiffuseColor (0.8, 0.8, 0.8, Quantity_TOC_sRGB),
37 SpecularColor(0.2, 0.2, 0.2, Quantity_TOC_sRGB),
39 Transparency (0.0f) {}
43 #endif // _RWObj_Material_HeaderFile