multi pass

Hello!

How can I implement vertex/fragment-shader with multiple passes???

here is my problem:

  • i have a base-texture
  • in the first pass I want to do some things if i find a special color on the basetexture - e.g. change color to another value
  • in the second pass I want to do some other things if i find another color.
  • in the third pass i want to calculate the correct lightning & reflecion
  • and the result should be written to a texture

or does anybody know a better way??

thx
Daniel

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.