16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 00:49:19 +02:00

Merge pull request #119 from dos1/skydome-summit

skydome: Limit desaturation at the top
This commit is contained in:
2026-06-29 23:56:28 +02:00
committed by GitHub

View File

@@ -295,7 +295,7 @@ void CSkyDome::RebuildColors() {
color.y = 0.65f * color.z; color.y = 0.65f * color.z;
} }
// simple gradient, darkening towards the top // simple gradient, darkening towards the top
color *= std::clamp( ( 1.0f - vertex.y ), 0.f, 1.f ); color *= std::clamp( ( 1.0f - vertex.y ), 0.2f, 1.f );
//color *= ( 0.25f - vertex.y ); //color *= ( 0.25f - vertex.y );
// gamma correction // gamma correction
color = glm::pow( color, gammacorrection ); color = glm::pow( color, gammacorrection );