pantograph valves state update cab control, skydome tweaks, minor bug fixes

This commit is contained in:
tmj-fstate
2021-04-01 17:23:20 +02:00
parent 893e7e9c44
commit 716aefc2ed
13 changed files with 109 additions and 36 deletions

View File

@@ -300,6 +300,9 @@ void CSkyDome::RebuildColors() {
color.x = 0.20f * color.z;
color.y = 0.65f * color.z;
}
// simple gradient, darkening towards the top
color *= clamp( ( 1.25f - vertex.y ), 0.f, 1.f );
// color *= ( 1.25f - vertex.y );
// gamma correction
color = glm::pow( color, gammacorrection );
/*
@@ -307,8 +310,6 @@ void CSkyDome::RebuildColors() {
color = glm::pow( color, glm::vec3( 2.2f ) - ( gammacorrection * 0.5f ) );
}
*/
// simple gradient, darkening towards the top
color *= ( 1.15f - vertex.y );
// save
m_colours[ i ] = color;
averagecolor += color;