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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user