qvolray

view sdr/slice.p.glsl @ 14:88312413467c

adding a sidewidget
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 10 Apr 2012 06:35:34 +0300
parents 04316e9e95dc
children 68c6eb619d1c
line source
1 uniform sampler3D volume;
2 uniform sampler1D xfer_tex;
4 void main()
5 {
6 float val = texture3D(volume, gl_TexCoord[0].xyz).a;
7 gl_FragColor = vec4(texture1D(xfer_tex, val).xxx, 1.0);
8 }