From 8cb69adad0915fc5de6dc87db1ae28aba44d350e Mon Sep 17 00:00:00 2001 From: James Canete Date: Tue, 4 Dec 2012 01:56:52 +0000 Subject: #5808 - Include and use .glsl in source (rend2) --- src/rend2/glsl/depthblur_vp.glsl | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/rend2/glsl/depthblur_vp.glsl (limited to 'src/rend2/glsl/depthblur_vp.glsl') diff --git a/src/rend2/glsl/depthblur_vp.glsl b/src/rend2/glsl/depthblur_vp.glsl new file mode 100644 index 00000000..9c46a79f --- /dev/null +++ b/src/rend2/glsl/depthblur_vp.glsl @@ -0,0 +1,12 @@ +attribute vec4 attr_Position; +attribute vec4 attr_TexCoord0; + +varying vec2 var_ScreenTex; + +void main() +{ + gl_Position = attr_Position; + var_ScreenTex = attr_TexCoord0.xy; + //vec2 screenCoords = gl_Position.xy / gl_Position.w; + //var_ScreenTex = screenCoords * 0.5 + 0.5; +} -- cgit