qvolray

diff sdr/slice.p.glsl @ 21:4c62be57fc1a

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 11 Apr 2012 16:59:45 +0300
parents 68c6eb619d1c
children
line diff
     1.1 --- a/sdr/slice.p.glsl	Wed Apr 11 06:44:06 2012 +0300
     1.2 +++ b/sdr/slice.p.glsl	Wed Apr 11 16:59:45 2012 +0300
     1.3 @@ -3,6 +3,6 @@
     1.4  
     1.5  void main()
     1.6  {
     1.7 -	float val = texture3D(volume, gl_TexCoord[0].xyz).a;
     1.8 +	float val = texture3D(volume, gl_TexCoord[0].xyz).w;
     1.9  	gl_FragColor = vec4(texture1D(xfer_tex, val).xxx, 1.0);
    1.10  }