Explorar el Código

Tightening of shadow related function signatures on GLES. Related to #1607.

Lasse Öörni hace 9 años
padre
commit
08b083b323
Se han modificado 1 ficheros con 6 adiciones y 2 borrados
  1. 6 2
      bin/CoreData/Shaders/GLSL/Lighting.glsl

+ 6 - 2
bin/CoreData/Shaders/GLSL/Lighting.glsl

@@ -298,7 +298,7 @@ float GetDirShadow(const vec4 iShadowPos[NUMCASCADES], float depth)
     return GetDirShadowFade(GetShadow(shadowPos), depth);
 }
 #else
-float GetDirShadow(const vec4 iShadowPos[NUMCASCADES], float depth)
+float GetDirShadow(const highp vec4 iShadowPos[NUMCASCADES], float depth)
 {
     return GetDirShadowFade(GetShadow(iShadowPos[0]), depth);
 }
@@ -335,7 +335,11 @@ float GetDirShadowDeferred(vec4 projWorldPos, vec3 normal, float depth)
 #endif
 #endif
 
-float GetShadow(vec4 iShadowPos[NUMCASCADES], float depth)
+#ifndef GL_ES
+float GetShadow(const vec4 iShadowPos[NUMCASCADES], float depth)
+#else
+float GetShadow(const highp vec4 iShadowPos[NUMCASCADES], float depth)
+#endif
 {
     #if defined(DIRLIGHT)
         return GetDirShadow(iShadowPos, depth);