char selection time freeze to prevent it from being dark

This commit is contained in:
Pfauenauge 2019-06-19 19:13:27 +02:00 committed by Joshua Barretto
parent b987bda9ce
commit 1dfc85a75b

View File

@ -84,7 +84,7 @@ impl Scene {
.set_orientation(Vec3::new(client.state().get_time() as f32 * 0.0, 0.0, 0.0));
let (view_mat, proj_mat, cam_pos) = self.camera.compute_dependents(client);
const CHAR_SELECT_TIME_OF_DAY: f32 = 50000.0; // 12*3600 seconds
if let Err(err) = renderer.update_consts(
&mut self.globals,
&[Globals::new(
@ -92,8 +92,8 @@ impl Scene {
proj_mat,
cam_pos,
self.camera.get_focus_pos(),
100.0,
client.state().get_time_of_day(),
CHAR_SELECT_TIME_OF_DAY,
500.0,
client.state().get_time(),
renderer.get_resolution(),
)],