From 16e472678abd38bf1c9e577a1bc2971dac8c4c8c Mon Sep 17 00:00:00 2001 From: Kirill Vainer Date: Sat, 9 Sep 2017 13:45:40 -0400 Subject: [PATCH] Support shadow maps in GLES --- jme3-core/src/main/resources/Common/ShaderLib/GLSLCompat.glsllib | 1 + 1 file changed, 1 insertion(+) diff --git a/jme3-core/src/main/resources/Common/ShaderLib/GLSLCompat.glsllib b/jme3-core/src/main/resources/Common/ShaderLib/GLSLCompat.glsllib index c1ace91d1..2a035e2f5 100644 --- a/jme3-core/src/main/resources/Common/ShaderLib/GLSLCompat.glsllib +++ b/jme3-core/src/main/resources/Common/ShaderLib/GLSLCompat.glsllib @@ -25,6 +25,7 @@ out vec4 outFragColor; # define texture3D texture # define textureCube texture # define texture2DLod textureLod +# define shadow2D(a,b) vec4(texture(a,b)) # define textureCubeLod textureLod # if defined VERTEX_SHADER # define varying out