About Shader

Jan 20, 2010 at 3:58 PM
Edited Jan 20, 2010 at 4:00 PM

I have a problem with shader.

I use water shader in Xen,but I bind shader look at like this image.

I want to let the water flow, but didn't.

Why?

Please help me.

Thanks.

Coordinator
Jan 22, 2010 at 9:52 AM

Hi evanlitw. I'm not sure what you want this effect to produce.
To my eye, you are reflecting the view vector (per-pixel) and using that direction to sample into a cubemap (which looks to have the same texture on each of the 6 faces).

If you want ripples, etc, then you'll need to figure that out mathematically. Not an easy thing to do, that's for sure.
If you have copied the shader from somewhere else, then I guess some value isn't being correctly passed in - or it might be assuming some render/texture state is set.

Unfortunately, I don't know how I can help. I'm not too sure what it is you want, or the context of the problem.
- Sorry