Fix tests

This commit is contained in:
Imbris 2020-03-05 19:07:48 -05:00
parent 4a0c474be1
commit ed5afaec8a
2 changed files with 8 additions and 6 deletions

View File

@ -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,

View File

@ -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 {
/// <VoxelGraphic>