orbitersim / orbiter

Open-source repository of Orbiter Space Flight Simulator
MIT License
1.61k stars 220 forks source link

Add night ("_n") texture for custom meshes #482

Open MishaPhysics opened 2 months ago

MishaPhysics commented 2 months ago

As it's known the default objects (BLOCK, TANK) can use the so-called night textures if we add "_n" to the main (color) texture name. It would be nice to add this opportunity for any textures of the custom meshes. Hope this shouldn't be very difficult.

We can use the "_emis" texture map, but it shines even during the day unlike the "_n" texture which only "turns on" at night. That's not good, since the "_emis" texture overrides the main (color) texture during the day.