glviewvol

view sdr/fast.p.glsl @ 4:04330eb80b36

lots of stuff
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 29 Dec 2014 05:41:36 +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 }