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
voxygen/src
@ -148,17 +148,14 @@ impl Scene {
|
|||||||
pub fn maintain(&mut self, renderer: &mut Renderer, scene_data: SceneData) {
|
pub fn maintain(&mut self, renderer: &mut Renderer, scene_data: SceneData) {
|
||||||
self.camera.update(scene_data.time);
|
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);
|
self.camera.compute_dependents(&VoidVol);
|
||||||
let camera::Dependents {
|
let camera::Dependents {
|
||||||
view_mat,
|
view_mat,
|
||||||
proj_mat,
|
proj_mat,
|
||||||
cam_pos,
|
cam_pos,
|
||||||
} = self.camera.dependents();
|
} = self.camera.dependents();
|
||||||
const VD: f32 = 115.0; //View Distance
|
const VD: f32 = 115.0; // View Distance
|
||||||
const TIME: f64 = 43200.0; // hours*3600 seconds
|
const TIME: f64 = 43200.0; // 12 hours*3600 seconds
|
||||||
if let Err(err) = renderer.update_consts(&mut self.globals, &[Globals::new(
|
if let Err(err) = renderer.update_consts(&mut self.globals, &[Globals::new(
|
||||||
view_mat,
|
view_mat,
|
||||||
proj_mat,
|
proj_mat,
|
||||||
|
@ -114,7 +114,12 @@ pub struct Rotations {
|
|||||||
/// corresponding ImgIds and create a struct with all of them.
|
/// corresponding ImgIds and create a struct with all of them.
|
||||||
///
|
///
|
||||||
/// Example usage:
|
/// Example usage:
|
||||||
/// ```
|
/// ```ignore
|
||||||
|
/// use veloren_voxygen::{
|
||||||
|
/// image_ids,
|
||||||
|
/// ui::img_ids::{BlankGraphic, ImageGraphic, VoxelGraphic},
|
||||||
|
/// };
|
||||||
|
///
|
||||||
/// image_ids! {
|
/// image_ids! {
|
||||||
/// pub struct Imgs {
|
/// pub struct Imgs {
|
||||||
/// <VoxelGraphic>
|
/// <VoxelGraphic>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user