Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2010
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  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
Add Comment
Please, Sign In to add comment
Advertisement