diff --git a/voxygen/src/scene/simple.rs b/voxygen/src/scene/simple.rs index e319c44942..c12a6f9641 100644 --- a/voxygen/src/scene/simple.rs +++ b/voxygen/src/scene/simple.rs @@ -148,17 +148,14 @@ impl Scene { pub fn maintain(&mut self, renderer: &mut Renderer, scene_data: SceneData) { self.camera.update(scene_data.time); - //self.camera - // .set_orientation(Vec3::new(scene_data.time as f32 * 0.0, 0.0, 0.0)); - self.camera.compute_dependents(&VoidVol); let camera::Dependents { view_mat, proj_mat, cam_pos, } = self.camera.dependents(); - const VD: f32 = 115.0; //View Distance - const TIME: f64 = 43200.0; // hours*3600 seconds + const VD: f32 = 115.0; // View Distance + const TIME: f64 = 43200.0; // 12 hours*3600 seconds if let Err(err) = renderer.update_consts(&mut self.globals, &[Globals::new( view_mat, proj_mat, diff --git a/voxygen/src/ui/img_ids.rs b/voxygen/src/ui/img_ids.rs index f3cfc0f65f..ea5a8ac294 100644 --- a/voxygen/src/ui/img_ids.rs +++ b/voxygen/src/ui/img_ids.rs @@ -114,7 +114,12 @@ pub struct Rotations { /// corresponding ImgIds and create a struct with all of them. /// /// Example usage: -/// ``` +/// ```ignore +/// use veloren_voxygen::{ +/// image_ids, +/// ui::img_ids::{BlankGraphic, ImageGraphic, VoxelGraphic}, +/// }; +/// /// image_ids! { /// pub struct Imgs { ///