You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: Source/Scene/processModelMaterialsCommon.js
+1
Original file line number
Diff line number
Diff line change
@@ -543,6 +543,7 @@ import ModelUtility from './ModelUtility.js';
543
543
if(hasNormals){
544
544
fragmentShader+=' vec3 normal = normalize(v_normal);\n';
545
545
if(khrMaterialsCommon.doubleSided){
546
+
// !gl_FrontFacing doesn't work as expected on Mac/Intel so use the more verbose form instead. See https://github.com/AnalyticalGraphicsInc/cesium/pull/8494.
546
547
fragmentShader+=' if (gl_FrontFacing == false)\n';
Copy file name to clipboardexpand all lines: Source/Scene/processPbrMaterials.js
+1
Original file line number
Diff line number
Diff line change
@@ -602,6 +602,7 @@ import ModelUtility from './ModelUtility.js';
602
602
fragmentShader+=' vec3 n = ng;\n';
603
603
}
604
604
if(material.doubleSided){
605
+
// !gl_FrontFacing doesn't work as expected on Mac/Intel so use the more verbose form instead. See https://github.com/AnalyticalGraphicsInc/cesium/pull/8494.
605
606
fragmentShader+=' if (gl_FrontFacing == false)\n';
0 commit comments