summaryrefslogtreecommitdiff
path: root/drivers/gles3/shaders
diff options
context:
space:
mode:
authorletheed <dev@zaph.ch>2017-09-01 15:01:24 +0200
committerletheed <dev@zaph.ch>2017-09-01 15:01:24 +0200
commit3a188015be668884dc296abc86e15225fe04418d (patch)
treefbe1f17cc32c81002e34b7901b398e62ff448ef4 /drivers/gles3/shaders
parent1e0fc4dc4e3143d2905d754099dff5f911188e49 (diff)
add shadow_filter variant PCF7
Diffstat (limited to 'drivers/gles3/shaders')
-rw-r--r--drivers/gles3/shaders/canvas.glsl14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/gles3/shaders/canvas.glsl b/drivers/gles3/shaders/canvas.glsl
index 37187a86cc..3bcfd24383 100644
--- a/drivers/gles3/shaders/canvas.glsl
+++ b/drivers/gles3/shaders/canvas.glsl
@@ -585,6 +585,20 @@ FRAGMENT_SHADER_CODE
#endif
+#ifdef SHADOW_FILTER_PCF7
+
+ SHADOW_TEST(su+shadowpixel_size*3.0);
+ SHADOW_TEST(su+shadowpixel_size*2.0);
+ SHADOW_TEST(su+shadowpixel_size);
+ SHADOW_TEST(su);
+ SHADOW_TEST(su-shadowpixel_size);
+ SHADOW_TEST(su-shadowpixel_size*2.0);
+ SHADOW_TEST(su-shadowpixel_size*3.0);
+ shadow_attenuation/=7.0;
+
+#endif
+
+
#ifdef SHADOW_FILTER_PCF9
SHADOW_TEST(su+shadowpixel_size*4.0);