summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/gl_common/shader_3d/shadow_map_vert.shd
diff options
context:
space:
mode:
authorOleksandr Shcherbina <o.shcherbina@samsung.com>2015-05-26 18:40:03 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-05-27 00:31:07 +0200
commitabc1eabecb6da1bf77b530132814a2427bfb44fb (patch)
tree364ef0d71a21ceb0eac700c45e0426b0c985b69d /src/modules/evas/engines/gl_common/shader_3d/shadow_map_vert.shd
parent6986e3126d646b693300b78c96bb0eabae34782e (diff)
evas: fix compatibility with GLES2.0. Shadow effect
Summary: Use RGBA texture unit for generation shadow. Use separate framebuffer and renderbuffer for shadow map. Refactor shadow map shader to use position of shadow and pack depth value in RGBA texture. Refactor shader function for generation shadow factor to unpack depth value from RGBA shadow map. Reviewers: cedric, Hermet Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2578 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to '')
-rw-r--r--src/modules/evas/engines/gl_common/shader_3d/shadow_map_vert.shd3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/evas/engines/gl_common/shader_3d/shadow_map_vert.shd b/src/modules/evas/engines/gl_common/shader_3d/shadow_map_vert.shd
index 095fc9c9c9..66ce4f3d62 100644
--- a/src/modules/evas/engines/gl_common/shader_3d/shadow_map_vert.shd
+++ b/src/modules/evas/engines/gl_common/shader_3d/shadow_map_vert.shd
@@ -1,5 +1,5 @@
1uniform mat4 uMatrixMvp; 1uniform mat4 uMatrixMvp;
2 2varying vec4 shadowmapposition;
3VERTEX_SHADER_USE_POSITION 3VERTEX_SHADER_USE_POSITION
4 4
5#ifdef ALPHA_TEST_ENABLED 5#ifdef ALPHA_TEST_ENABLED
@@ -17,4 +17,5 @@ VERTEX_SHADER_POSITION
17#endif //ALPHA_TEST_ENABLED 17#endif //ALPHA_TEST_ENABLED
18 18
19 gl_Position = uMatrixMvp * position; 19 gl_Position = uMatrixMvp * position;
20 shadowmapposition = gl_Position;
20} 21}