That done, efficient rendering of small lights via z-and-stencil-tested spheres works nicely!
Behold the scene, containing no less than fifty ickle lights, plus the large shadow-casting light from the player's avatar.
The majority of the screen is taken up by the final composite image. On the right, small sections show a sample of the buffers involved (yes, I don't even turn off my debugging chuffle before posting, I'm that lazy). Top is the SSAO term (very low intensity in the final image, as it looks pants). Below that are the lighting accumulation buffer, world-space normal, and finally unlit diffuse buffers.
Edit: here's a version using 1024x768 buffers throughout. Ouch, bye-bye framerate. Need to fix my absurd pixel shader usage methinks.
No comments:
Post a Comment