#5808 - Include and use .glsl in source (rend2)

This commit is contained in:
James Canete 2012-12-04 01:56:52 +00:00
parent 6b811ada7a
commit edb414b34a
30 changed files with 2058 additions and 999 deletions

View file

@ -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;
}