I'm using deferred shading, with the lighting done on a compute shader, without using a light buffer, just calculating the lights from position and radius, currently only supporting point lights.Is there a way with decent performance to simulate spotlights as well or do I have to go back to rendering them as cones on a light buffer?I can imagine generating lots of cones each frame in the compute shader would be heavy?Does anyone have experience with this type of thing?More and more I get convinced it's not worth it, it's a lot more convenient when you actualy render shapes for the lights, since it's so much more flexible.
Popular Topics
Advertisement