[core] Set "max_camera_distance" to 1.5 for viewport-aligned road labels.

Viewport-aligned curved labels start to look very strange in the distance. Until we have a better system for projecting them, just prevent them from showing.
This commit is contained in:
Chris Loer
2017-05-19 13:30:17 -07:00
committed by Ansis Brammanis
parent 2ee59796fb
commit f8402e2042
3 changed files with 19 additions and 3 deletions

View File

@@ -61,7 +61,7 @@ Values makeValues(const bool isText,
uniforms::u_collision_y_stretch::Value{ tile.tile.yStretch() },
uniforms::u_camera_to_center_distance::Value{ state.getCameraToCenterDistance() },
uniforms::u_pitch::Value{ state.getPitch() },
uniforms::u_max_camera_distance::Value{ 10.0f },
uniforms::u_max_camera_distance::Value{ values.maxCameraDistance },
std::forward<Args>(args)...
};
}