low framerate cab movement fix

This commit is contained in:
tmj-fstate
2017-03-02 19:17:22 +01:00
parent 22a5cc8dbc
commit 0e3b414f8f
4 changed files with 11 additions and 149 deletions

View File

@@ -350,7 +350,6 @@ void CSkyDome::RebuildColors() {
color.y = 0.65f * color.z;
color = color * ( 1.15f - vertex.y ); // simple gradient, darkening towards the top
}
// save
m_colours[ i ] = color;
averagecolor += color * 8.0f; // save for edge cases each vertex goes in 8 triangles