0031284: Visualization - XCAFDoc_VisMaterialPBR lacks Index of Refraction
[occt.git] / src / XCAFDoc / XCAFDoc_VisMaterial.cxx
index c865308..3872c58 100644 (file)
@@ -237,6 +237,8 @@ void XCAFDoc_VisMaterial::FillMaterialAspect (Graphic3d_MaterialAspect& theAspec
     aPbr.SetMetallic (myPbrMat.Metallic);
     aPbr.SetRoughness(myPbrMat.Roughness);
     aPbr.SetEmission (myPbrMat.EmissiveFactor);
+    aPbr.SetIOR      (myPbrMat.RefractionIndex);
+    theAspect.SetRefractionIndex (myPbrMat.RefractionIndex);
     theAspect.SetPBRMaterial (aPbr);
     theAspect.SetBSDF (Graphic3d_BSDF::CreateMetallicRoughness (aPbr));
   }