Page 1 of 1

Solution multi lights and multi pass?

Posted: Thu Apr 13, 2006 8:50 am
by chromdragon
Solution for rendering multi lights useing GLSL:

- multi pass
pass 0 (light 0) + pass 1 (light 1)!

but how do I do multi pass in IRR?

- for in the main() shader
for(i=0; i<lightsCount; i++) ...

but I think that shaders must have full unrolled loops!
(any one know about this in Shader Langage 2.0?)

Posted: Thu Apr 13, 2006 8:29 pm
by chromdragon
After a bit of search I think IRR don't support mult pass! (just some 1-2 pass with bleding, but how about X pass)

and Shader 2.0 don't support unrolled loops (Shader 3 or 4 will) and must have const index (ex: light[ const ]. ...)