invisible
diff data/shaders/invisible.v.glsl @ 23:b50ad2711f5f
fixed fov aspect projection et c, added shaders
todo: segmentation
author | Eleni Maria Stea <eleni@mutantstargoat.com> |
---|---|
date | Sat, 16 Nov 2013 23:29:15 +0200 |
parents | 531a814d4d6b |
children | 8b81571dd4dd |
line diff
1.1 --- a/data/shaders/invisible.v.glsl Sun Nov 10 14:32:29 2013 +0200 1.2 +++ b/data/shaders/invisible.v.glsl Sat Nov 16 23:29:15 2013 +0200 1.3 @@ -0,0 +1,11 @@ 1.4 +uniform sampler2D depth_tex; 1.5 + 1.6 +void main() 1.7 +{ 1.8 + float depth = texture2D(depth_tex, gl_MultiTexCoord0.xy).r; 1.9 + vec4 vpos = gl_Vertex; 1.10 + vpos.z = depth; 1.11 + 1.12 + gl_Position = gl_ModelViewProjectionMatrix * vpos; 1.13 + gl_TexCoord[0] = gl_MultiTexCoord0; 1.14 +}