Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- uniform sampler3D tex;
- varying float sphIndex;
- void main()
- {
- vec3 coord3;
- coord3.xy = gl_TexCoord[0].st;
- coord3.z = sphIndex;
- vec4 color = texture3D(tex,coord3);
- gl_FragColor = color;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement