Deferred Rendering?
Posted: Tue Nov 27, 2012 10:04 pm
I'm really stuck on this.
I have my lighting system, and in the normal, forward rendering way, if you have 100 lights, you're going to loop through every pixel of every object 100 times...which is A LOT, this is so that you can calculate the combined effects of lights.
Instead, I want to group those 100 lights into a canvas, multiplying their colors, effectively combining their effects, and taking this final canvas, and multiplying the colors of the pixels by the pixels of my object. So you can effectively have hundreds and hundreds of lights, but it will be treated almost as one light!
So what I'm stuck on is somehow grouping my lights into a canvas. Any ideas?
=====What I've tried=========
-Drawing the lights as circles on a canvas, but since I'm just drawing them, they get added onto each other, so their colors don't blend
...that's about it. Any help or ideas would be appreciated!
I have my lighting system, and in the normal, forward rendering way, if you have 100 lights, you're going to loop through every pixel of every object 100 times...which is A LOT, this is so that you can calculate the combined effects of lights.
Instead, I want to group those 100 lights into a canvas, multiplying their colors, effectively combining their effects, and taking this final canvas, and multiplying the colors of the pixels by the pixels of my object. So you can effectively have hundreds and hundreds of lights, but it will be treated almost as one light!
So what I'm stuck on is somehow grouping my lights into a canvas. Any ideas?
=====What I've tried=========
-Drawing the lights as circles on a canvas, but since I'm just drawing them, they get added onto each other, so their colors don't blend
...that's about it. Any help or ideas would be appreciated!