Browse Source

replaced placeholder value with the correct uniform

AronKovacs 4 years ago
parent
commit
40f1ca207f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/mol-gl/shader/postprocessing.frag.ts

+ 1 - 1
src/mol-gl/shader/postprocessing.frag.ts

@@ -113,7 +113,7 @@ void main(void) {
 			if (color.a != 1.0) {
 				color.a = 1.0 - fogFactor;
 			}
-			color.rgb = mix(color.rgb, vec3(1.0), fogFactor);
+			color.rgb = mix(color.rgb, uFogColor, fogFactor);
 		}
 	#endif