Browse Source

Fix varying used in fragment but not declared in vertex

Popov72 4 years ago
parent
commit
8ea7b5b285
1 changed files with 3 additions and 1 deletions
  1. 3 1
      materialsLibrary/src/water/water.fragment.fx

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

@@ -38,7 +38,9 @@ varying vec4 vColor;
 // Samplers
 #ifdef BUMP
 varying vec2 vNormalUV;
-varying vec2 vNormalUV2;
+#ifdef BUMPSUPERIMPOSE
+    varying vec2 vNormalUV2;
+#endif
 uniform sampler2D normalSampler;
 uniform vec2 vNormalInfos;
 #endif