We are making some space in the data so that there can be also a distance limit on the light range, so this will be possible this way.
That's great for interior/cockpit lights, but there still being a problem. Let's take as an example the landing lights on an aircraft. When those lights are behind the cockpit, you have to limit the source diameter, otherwise the lights will illuminate the cockpit. Will be there a way to avoid that, maybe by casting dynamic shadows from the spotlights?
Ah by the way, I've found a way to illuminate the cockpit without casting any light on the ground, and it's working very very nice.
Some screens
here.
The spotlights are set up like this:
this.add_spotlight_source({x: 0.000,y:4.250,z:1.250}, {z:1}, 50, 179.5, 1, {x:0.025,y:0.1,z:0.00}, 0.1); //Main light
this.add_spotlight_source({x: 0.221,y:4.743,z:0.899}, {z:1}, 5, 179.9, 1, {x:30.00, y:10,z:0.00}, 0.1); //Gauge Light#0
No, it's problematic because of how it affects some precomputed things in the hierarchy, and it would complicate the pipeline.
Oh, alright. No need for complications then.