Volume glsl shader

   1962   0   2
User Avatar
Member
25 posts
Joined: June 2008
Offline
Hey guys,

I've been playing around with the glsl shaders and managed to create and modify some basic geometry shaders. I'm now trying to create a simple volume shader but I can't seem to figure out how to pass the volume or a slice to the fragment shader.

I've had a look at some of the code in the glsl/volume folder and the fragment shader is using uniform sampler3D volumeTex. I know that for sampler2D I would use a File - Image parm but I don't know what to use for sampler3D.

How do I pass the volume to the fragment shader?

Thanks

Mike
  • Quick Links