Ver Fonte

fix fog, uncommented shader macro

Alexander Rose há 6 anos atrás
pai
commit
4961a0879d
1 ficheiros alterados com 2 adições e 2 exclusões
  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