0032524: Data Exchange, RWGltf_CafWriter - avoid writing translucent metallic materials
[occt.git] / src / RWGltf / RWGltf_GltfMaterialMap.cxx
index e81d1ae..a5f4ee3 100644 (file)
@@ -420,6 +420,7 @@ void RWGltf_GltfMaterialMap::DefineMaterial (const XCAFPrs_Style& theStyle,
     aPbrMat.BaseColor.SetRGB (theStyle.GetColorSurf());
     if (theStyle.GetColorSurfRGBA().Alpha() < 1.0f)
     {
+      aPbrMat.Metallic = 0.0f;
       aPbrMat.BaseColor.SetAlpha (theStyle.GetColorSurfRGBA().Alpha());
     }
   }