qvolray

changeset 6:04316e9e95dc

forgot the new shader
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 04 Apr 2012 01:37:58 +0300
parents 0c3874aa717a
children f40e4edfee7e
files slice.p.glsl
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/slice.p.glsl	Wed Apr 04 01:37:58 2012 +0300
     1.3 @@ -0,0 +1,8 @@
     1.4 +uniform sampler3D volume;
     1.5 +uniform sampler1D xfer_tex;
     1.6 +
     1.7 +void main()
     1.8 +{
     1.9 +	float val = texture3D(volume, gl_TexCoord[0].xyz).x;
    1.10 +	gl_FragColor = vec4(texture1D(xfer_tex, val).xxx, 1.0);
    1.11 +}