mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fix tests
This commit is contained in:
parent
4a0c474be1
commit
ed5afaec8a
@ -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,
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user