Explorar o código

fix fog, uncommented shader macro

Alexander Rose %!s(int64=6) %!d(string=hai) anos
pai
achega
4961a0879d
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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