0030700: Visualization, TKOpenGl - support PBR Metallic-Roughness shading model
[occt.git] / src / Graphic3d / Graphic3d_BSDF.hxx
index 7919089..37c1f47 100644 (file)
@@ -19,6 +19,8 @@
 #include <Graphic3d_Vec3.hxx>
 #include <Graphic3d_Vec4.hxx>
 
+class Graphic3d_PBRMaterial;
+
 //! Type of the Fresnel model.
 enum Graphic3d_FresnelModel
 {
@@ -169,6 +171,9 @@ public:
                                                      const Standard_ShortReal theAbsorptionCoeff,
                                                      const Standard_ShortReal theRefractionIndex);
 
+  //! Creates BSDF from PBR metallic-roughness material.
+  static Standard_EXPORT Graphic3d_BSDF CreateMetallicRoughness (const Graphic3d_PBRMaterial& thePbr);
+
 public:
 
   //! Creates uninitialized BSDF.