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

skydome: Limit desaturation at the top

Prevents a gray circle from forming at the dome's summit.
This commit is contained in:
Sebastian Krzyszkowiak
2026-06-29 23:53:36 +02:00
parent bb69986962
commit b46c8c76f3

View File

@@ -295,7 +295,7 @@ void CSkyDome::RebuildColors() {
color.y = 0.65f * color.z;
}
// 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 );
// gamma correction
color = glm::pow( color, gammacorrection );