# HG changeset patch # User John Tsiombikas # Date 1333492678 -10800 # Node ID 04316e9e95dc531dc520fa28f6dde001576894be # Parent 0c3874aa717ac7eac7acc30a7915125b0e962107 forgot the new shader diff -r 0c3874aa717a -r 04316e9e95dc slice.p.glsl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/slice.p.glsl Wed Apr 04 01:37:58 2012 +0300 @@ -0,0 +1,8 @@ +uniform sampler3D volume; +uniform sampler1D xfer_tex; + +void main() +{ + float val = texture3D(volume, gl_TexCoord[0].xyz).x; + gl_FragColor = vec4(texture1D(xfer_tex, val).xxx, 1.0); +}