Explorar el Código

Fix shader compile error due to missing variable.

David hace 7 años
padre
commit
6c5a4c8e85
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      src/Shaders/background.fragment.fx

+ 3 - 1
src/Shaders/background.fragment.fx

@@ -6,6 +6,8 @@ precision highp float;
 
 #include<__decl__backgroundFragment>
 
+#define RECIPROCAL_PI2 0.15915494
+
 // Constants
 uniform vec3 vEyePosition;
 
@@ -286,4 +288,4 @@ vec4 color = vec4(finalColor, finalAlpha);
 #endif
 
     gl_FragColor = color;
-}
+}