glviewvol

view sdr/fast.p.glsl @ 6:f22be47a3572

moved to TransferFuncs completely
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 30 Dec 2014 06:22:54 +0200
parents
children fb6d93471352
line source
1 uniform sampler3D vol_tex;
2 uniform sampler1D xfer_tex;
4 void main()
5 {
6 vec4 voxel = texture3D(vol_tex, gl_TexCoord[0].xyz);
7 vec4 color = texture1D(xfer_tex, voxel.a);
9 gl_FragColor.rgb = color.rgb;
10 gl_FragColor.a = 1.0;
11 }