volray

annotate slice.p.glsl @ 8:ae10631bb11b

cleaning up a bit to expand
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 07 Apr 2012 16:07:12 +0300
parents
children
rev   line source
nuclear@6 1 uniform sampler3D volume;
nuclear@6 2 uniform sampler1D xfer_tex;
nuclear@6 3
nuclear@6 4 void main()
nuclear@6 5 {
nuclear@6 6 float val = texture3D(volume, gl_TexCoord[0].xyz).x;
nuclear@6 7 gl_FragColor = vec4(texture1D(xfer_tex, val).xxx, 1.0);
nuclear@6 8 }