Solution multi lights and multi pass?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
chromdragon
Posts: 101
Joined: Wed Feb 15, 2006 4:22 pm
Location: RO

Solution multi lights and multi pass?

Post 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?)
chromdragon
Posts: 101
Joined: Wed Feb 15, 2006 4:22 pm
Location: RO

Post 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 ]. ...)
Post Reply