We spend time handling tons of lights even if their effects aren't visible.
Solution
After implementing #211, we could associate a bounding box to each light.
Then, in the deferredShadingPlugin, we simply only render the lights for each camera which intersect with its frustum, using the utilities defined in #1184.
Problem
We spend time handling tons of lights even if their effects aren't visible.
Solution
After implementing #211, we could associate a bounding box to each light. Then, in the
deferredShadingPlugin
, we simply only render the lights for each camera which intersect with its frustum, using the utilities defined in #1184.