Quote:Original post by darookieQuote:Original post by khaleelali
Also regarding the lights, any comments on that ?
OpenGL (and Direct3D as well) provide a fixed number of lights that are supported by the hardware (using the FF pipeline). Usually this number is limited to something like 8 or so. Now imagine having a set of particles that illuminate the scene - say a swarm of fireflies or a number of candles in a room.
While the number of lights in a shader (per pass) is only limited by its max instruction count, the FF pipeline limit is fix.
Yet another good reason for shaders is faking global illumination. While the FF only supports the "ambient light" hack, shaders provide you with the flexibility of choosing from a number of different more sophisticated hacks.
Sweet i will definately look into that. that's what i needed to get started with some ideas. thank you