I was wondering if there is a way to make the sun a little bit smaller to make it look more realistic. Cause in my opinion I think the sun is too big in size especially midday when the sun is at its highest part of the day. Any help would be appreciated
Page 1 of 1
Sun size
#2
Posted 20 February 2024 - 09:09 AM
Hello.
All i know, the Sun is a shader in ORTS.
But I still haven't learn the language of shaders - to modify them.
All i know, the Sun is a shader in ORTS.
But I still haven't learn the language of shaders - to modify them.
#3
Posted 20 February 2024 - 09:20 AM
If I remember correctly the sun size is hardcoded into OR. If you know how you could try to modify skyshader.fx found in OR's content folder.
This thread over at TrainSim.com may also provide some help >>> SunSize
Portion of skyshader.fx >>> some of these settings affect size of sun? Not in my field of knowledge!
This thread over at TrainSim.com may also provide some help >>> SunSize
Portion of skyshader.fx >>> some of these settings affect size of sun? Not in my field of knowledge!
// Sun glow // Coefficients selected by the author to achieve the desired appearance - fot limits the effect skyColor += angleRcp * Fog.y; // increase orange at sunset and yellow at sunrise - fog limits the effect if (LightVector.x < 0) { // These if-statements prevent the yellow-flash effect if (LightVector.y > 0.13) { skyColor.rg += SkyColor.z*2 * angleRcp * Fog.z; skyColor.r += SkyColor.z*2 * angleRcp * Fog.z; } else { skyColor.rg += angleRcp * 0.075 * SkyColor.y; skyColor.r += angleRcp * 0.075 * SkyColor.y; } } else { if (LightVector.y > 0.15) { skyColor.rg += SkyColor.z*3 * angleRcp * Fog.z; skyColor.r += SkyColor.z * angleRcp * Fog.z; } else { skyColor.rg += angleRcp * 0.075 * SkyColor.y; skyColor.r += pow(angleRcp * 0.075 * SkyColor.y,2); } } // Keep alpha opague skyColor.a = 1.0; return skyColor; }
#4
Posted 20 February 2024 - 09:35 AM
I think some shader changes with the changes to support the glTF 3D file format have made the sun look more sensible. That won't escape from the unstable version for some time, but maybe the sun shader could be copied from an unstable version to any other version?
Page 1 of 1