Hello Guest

Tutorial: Multitexturing using GLSL

  • 3 Replies
  • 10030 Views
*

Offline ste3e

  • *
  • 20
Tutorial: Multitexturing using GLSL
« on: November 26, 2010, 01:03:49 »
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...
« Last Edit: November 26, 2010, 09:10:41 by ste3e »

*

Offline kappa

  • *****
  • 1319
Re: Tutorial: Multitexturing using GLSL
« Reply #1 on: November 26, 2010, 09:53:05 »
ah nice, your shader tutorial series is shaping up really nicely.

Re: Tutorial: Multitexturing using GLSL
« Reply #2 on: November 26, 2010, 10:21:29 »
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.

*

Offline ste3e

  • *
  • 20
Re: Tutorial: Multitexturing using GLSL
« Reply #3 on: November 27, 2010, 23:10:59 »
Thanks Matthias... I was just after something light that worked. It seems strange that sourceforge would be supporting ripoffs.