Tutorial: Multitexturing using GLSL

Started by ste3e, November 26, 2010, 01:03:49

Previous topic - Next topic

ste3e

There are  few working examples using GLSL and multitexturing on the net. Finally I figured it out.

https://docs.google.com/leaf?id=0B9hhZie2D-fENDk1M2EwOGMtYjRlMS00NDY3LWFmNmEtZDU0MWVjMmQyM2Uz&hl=en

If anyone can help, my ATI throws: "Validation warning! - Sampler value sampler02 has not been set in fragment shader
Validation successful." when I run the program, but all the catches written into the code pass, and the shader behaves as expected, including the use made of sampler02 in the fragment shader so it is obviously bound to the correct texture. I know ATI were having issues supporting GLSL...

kappa

ah nice, your shader tutorial series is shaping up really nicely.

Matthias

ste3e: don't use that PNG decoder from source forge - it is an unmaintained ripoff. The real version is on the TWL website and it has got a few bug fixed since that SF ripoff was done.

ste3e

Thanks Matthias... I was just after something light that worked. It seems strange that sourceforge would be supporting ripoffs.