Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2010
150
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. uniform sampler3D tex;
  2.  
  3. varying float sphIndex;
  4.  
  5.  
  6. void main()
  7. {
  8.    
  9.     vec3 coord3;
  10.     coord3.xy = gl_TexCoord[0].st;
  11.     coord3.z = sphIndex;
  12.    
  13.     vec4 color = texture3D(tex,coord3);
  14.     gl_FragColor = color;
  15. }
Advertisement
RAW Paste Data Copied
Advertisement