Skip to content

Commit

Permalink
Fix SHADOWS_DISABLED flag in GLES2
Browse files Browse the repository at this point in the history
Signed-off-by: Guilherme Souza <gdsdsilva@inf.ufpel.edu.br>
  • Loading branch information
SouzaGuilherme committed May 7, 2019
1 parent fcbadd4 commit b363125
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions drivers/gles2/shaders/scene.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -1699,6 +1699,8 @@ FRAGMENT_SHADER_CODE

#endif

#if !defined(SHADOWS_DISABLED)

#ifdef USE_SHADOW
{
highp vec4 splane = shadow_coord;
Expand Down Expand Up @@ -1729,6 +1731,8 @@ FRAGMENT_SHADER_CODE
}
#endif

#endif //SHADOWS_DISABLED

#endif //type omni

#ifdef LIGHT_MODE_DIRECTIONAL
Expand All @@ -1739,6 +1743,8 @@ FRAGMENT_SHADER_CODE
#endif
float depth_z = -vertex.z;

#if !defined(SHADOWS_DISABLED)

#ifdef USE_SHADOW

#ifdef USE_VERTEX_LIGHTING
Expand Down Expand Up @@ -1957,6 +1963,8 @@ FRAGMENT_SHADER_CODE

#endif //use shadow

#endif // SHADOWS_DISABLED

#endif

#ifdef LIGHT_MODE_SPOT
Expand Down Expand Up @@ -1993,6 +2001,8 @@ FRAGMENT_SHADER_CODE

#endif

#if !defined(SHADOWS_DISABLED)

#ifdef USE_SHADOW
{
highp vec4 splane = shadow_coord;
Expand All @@ -2002,6 +2012,8 @@ FRAGMENT_SHADER_CODE
}
#endif

#endif // SHADOWS_DISABLED

#endif // LIGHT_MODE_SPOT

#ifdef USE_VERTEX_LIGHTING
Expand Down

0 comments on commit b363125

Please sign in to comment.