invisible

view 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 source
1 uniform sampler2D depth_tex;
3 void main()
4 {
5 float depth = texture2D(depth_tex, gl_MultiTexCoord0.xy).r;
6 vec4 vpos = gl_Vertex;
7 vpos.z = depth;
9 gl_Position = gl_ModelViewProjectionMatrix * vpos;
10 gl_TexCoord[0] = gl_MultiTexCoord0;
11 }