Posted February 25, 2024 by kindeyegames
Testing all eight lights of fragment lighting effect, one for headlights, other seven for the light poles, check every second or so for which seven light poles are closest and assign light to them (cheap pooling of resources). A real optimization would do closest seven in the viewport, not radius. Setting effect on objects via event can limit perf (lots of objects in this scene), in this past have used JS to make that go much faster, so will need to look at that too.