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-1
Original file line number
Diff line number
Diff line change
@@ -643,7 +643,7 @@ function generateTechnique(
643
643
fragmentShader+=" vec3 normal = normalize(v_normal);\n";
644
644
if(khrMaterialsCommon.doubleSided){
645
645
// !gl_FrontFacing doesn't work as expected on Mac/Intel so use the more verbose form instead. See https://github.com/CesiumGS/cesium/pull/8494.
646
-
fragmentShader+=" if (gl_FrontFacing == false)\n";
Copy file name to clipboardexpand all lines: Source/Scene/processPbrMaterials.js
+1-1
Original file line number
Diff line number
Diff line change
@@ -768,7 +768,7 @@ function generateTechnique(
768
768
}
769
769
if(material.doubleSided){
770
770
// !gl_FrontFacing doesn't work as expected on Mac/Intel so use the more verbose form instead. See https://github.com/CesiumGS/cesium/pull/8494.
771
-
fragmentShader+=" if (gl_FrontFacing == false)\n";
* @returns {bool} <code>true</code> if the fragment is back facing; otherwise, <code>false</code>.
8
+
*/
9
+
bool czm_backFacing()
10
+
{
11
+
// !gl_FrontFacing doesn't work as expected on Mac/Intel so use the more verbose form instead. See https://github.com/CesiumGS/cesium/pull/8494.
Copy file name to clipboardexpand all lines: Source/Shaders/GlobeFS.glsl
+1-2
Original file line number
Diff line number
Diff line change
@@ -453,8 +453,7 @@ void main()
453
453
#endif
454
454
455
455
#ifdef UNDERGROUND_COLOR
456
-
// !gl_FrontFacing doesn't work as expected on Mac/Intel so use the more verbose form instead. See https://github.com/CesiumGS/cesium/pull/8494.
0 commit comments