瀏覽代碼

fix fog, uncommented shader macro

Alexander Rose 6 年之前
父節點
當前提交
4961a0879d
共有 1 個文件被更改,包括 2 次插入2 次删除
  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