Browse Source

Fix Water Material Webgl1

sebavan 6 years ago
parent
commit
451901b9a4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      materialsLibrary/src/water/water.fragment.fx

+ 1 - 1
materialsLibrary/src/water/water.fragment.fx

@@ -246,7 +246,7 @@ vec4 color = vec4(finalDiffuse + finalSpecular, alpha);
 // We first move from gamma to linear.
 #ifdef IMAGEPROCESSINGPOSTPROCESS
 	color.rgb = toLinearSpace(color.rgb);
-#elif IMAGEPROCESSING
+#elif defined(IMAGEPROCESSING)
     color.rgb = toLinearSpace(color.rgb);
     color = applyImageProcessing(color);
 #endif