|
@@ -1693,6 +1693,8 @@ FRAGMENT_SHADER_CODE
|
|
|
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
+#if !defined(SHADOWS_DISABLED)
|
|
|
|
+
|
|
#ifdef USE_SHADOW
|
|
#ifdef USE_SHADOW
|
|
{
|
|
{
|
|
highp vec4 splane = shadow_coord;
|
|
highp vec4 splane = shadow_coord;
|
|
@@ -1723,6 +1725,8 @@ FRAGMENT_SHADER_CODE
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
+#endif //SHADOWS_DISABLED
|
|
|
|
+
|
|
#endif //type omni
|
|
#endif //type omni
|
|
|
|
|
|
#ifdef LIGHT_MODE_DIRECTIONAL
|
|
#ifdef LIGHT_MODE_DIRECTIONAL
|
|
@@ -1733,6 +1737,8 @@ FRAGMENT_SHADER_CODE
|
|
#endif
|
|
#endif
|
|
float depth_z = -vertex.z;
|
|
float depth_z = -vertex.z;
|
|
|
|
|
|
|
|
+#if !defined(SHADOWS_DISABLED)
|
|
|
|
+
|
|
#ifdef USE_SHADOW
|
|
#ifdef USE_SHADOW
|
|
|
|
|
|
#ifdef USE_VERTEX_LIGHTING
|
|
#ifdef USE_VERTEX_LIGHTING
|
|
@@ -1951,6 +1957,8 @@ FRAGMENT_SHADER_CODE
|
|
|
|
|
|
#endif //use shadow
|
|
#endif //use shadow
|
|
|
|
|
|
|
|
+#endif // SHADOWS_DISABLED
|
|
|
|
+
|
|
#endif
|
|
#endif
|
|
|
|
|
|
#ifdef LIGHT_MODE_SPOT
|
|
#ifdef LIGHT_MODE_SPOT
|
|
@@ -1987,6 +1995,8 @@ FRAGMENT_SHADER_CODE
|
|
|
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
+#if !defined(SHADOWS_DISABLED)
|
|
|
|
+
|
|
#ifdef USE_SHADOW
|
|
#ifdef USE_SHADOW
|
|
{
|
|
{
|
|
highp vec4 splane = shadow_coord;
|
|
highp vec4 splane = shadow_coord;
|
|
@@ -1996,6 +2006,8 @@ FRAGMENT_SHADER_CODE
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
+#endif // SHADOWS_DISABLED
|
|
|
|
+
|
|
#endif // LIGHT_MODE_SPOT
|
|
#endif // LIGHT_MODE_SPOT
|
|
|
|
|
|
#ifdef USE_VERTEX_LIGHTING
|
|
#ifdef USE_VERTEX_LIGHTING
|