qvolray

annotate sdr/slice.p.glsl @ 37:450d4c50470f

- 16bit floating point textures halve gpu texture memory usage - slower transfer function change
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 01 Jan 2014 00:23:57 +0200
parents 68c6eb619d1c
children
rev   line source
nuclear@6 1 uniform sampler3D volume;
nuclear@6 2 uniform sampler1D xfer_tex;
nuclear@6 3
nuclear@6 4 void main()
nuclear@6 5 {
nuclear@21 6 float val = texture3D(volume, gl_TexCoord[0].xyz).w;
nuclear@21 7 gl_FragColor = vec4(texture1D(xfer_tex, val).xxx, 1.0);
nuclear@6 8 }