소스 검색

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