qvolray

view sdr/slice.p.glsl @ 28:aeef3c2ae472

the slice widget works fine
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 14 Apr 2012 16:35:30 +0300
parents 68c6eb619d1c
children
line source
1 uniform sampler3D volume;
2 uniform sampler1D xfer_tex;
4 void main()
5 {
6 float val = texture3D(volume, gl_TexCoord[0].xyz).w;
7 gl_FragColor = vec4(texture1D(xfer_tex, val).xxx, 1.0);
8 }