Quellcode durchsuchen

fix fog, uncommented shader macro

Alexander Rose vor 6 Jahren
Ursprung
Commit
4961a0879d
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      src/mol-gl/shader/chunks/apply-fog.glsl

+ 2 - 2
src/mol-gl/shader/chunks/apply-fog.glsl

@@ -1,6 +1,6 @@
-// #ifdef dUseFog
+#ifdef dUseFog
 	float depth = length(vViewPosition);
     // float depth = gl_FragCoord.z / gl_FragCoord.w;
     float fogFactor = smoothstep(uFogNear, uFogFar, depth);
 	gl_FragColor.rgb = mix(gl_FragColor.rgb, uFogColor, fogFactor);
-// #endif
+#endif