RigsOfRods / rigs-of-rods

Main development repository for Rigs of Rods soft-body physics simulator
https://www.rigsofrods.org
GNU General Public License v3.0
991 stars 175 forks source link

:truck: new directive `set_attenuation_defaults` #3087

Closed ohlidalp closed 3 weeks ago

ohlidalp commented 9 months ago

Works like all other set_*_defaults directives. The arguments are an exact match to the Ogre::Light::setAttenuation(), see https://ogrecave.github.io/ogre/api/latest/class_ogre_1_1_light.html#a43f763d809bc7da9a85fec15f57380f4

Only affects flares3 for the moment.

Parameters:

I thoroughly verified using debugger that the values do propagate to the OGRE light source and stay there. I wasn't able to see any effect though. Let's test under OGRE 14.

My testing vehicle: flare3attenuation-agoras.zip

ohlidalp commented 3 weeks ago

Closing until migration to OGRE14, then this becomes relevant.