glviewvol

annotate 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
rev   line source
nuclear@4 1 uniform sampler3D vol_tex;
nuclear@4 2 uniform sampler1D xfer_tex;
nuclear@4 3
nuclear@4 4 void main()
nuclear@4 5 {
nuclear@4 6 vec4 voxel = texture3D(vol_tex, gl_TexCoord[0].xyz);
nuclear@4 7 vec4 color = texture1D(xfer_tex, voxel.a);
nuclear@4 8
nuclear@4 9 gl_FragColor.rgb = color.rgb;
nuclear@4 10 gl_FragColor.a = 1.0;
nuclear@4 11 }