Change visibility of eye_position
This commit is contained in:
parent
45c0a31cb3
commit
402f3eb5bd
2 changed files with 3 additions and 3 deletions
|
@ -103,7 +103,7 @@ impl Camera {
|
||||||
}
|
}
|
||||||
|
|
||||||
// view matrix handling
|
// view matrix handling
|
||||||
fn eye_position(&self) -> Vector3<f32> {
|
pub fn eye_position(&self) -> Vector3<f32> {
|
||||||
rotate_z(self.eye_offset, self.eye_rotation) + self.center + self.center_offset
|
rotate_z(self.eye_offset, self.eye_rotation) + self.center + self.center_offset
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,8 +14,8 @@ fn main() -> Result<()> {
|
||||||
world_builder.add_system(GameState::update);
|
world_builder.add_system(GameState::update);
|
||||||
world_builder.resources.insert(GameState::default());
|
world_builder.resources.insert(GameState::default());
|
||||||
|
|
||||||
let dir = Path::new("C:/Users/M.Huebner/Downloads/skybox");
|
// let dir = Path::new("C:/Users/M.Huebner/Downloads/skybox");
|
||||||
// let dir = Path::new("/home/michaelh/Sync/skybox_labeled");
|
let dir = Path::new("/home/michaelh/Sync/skybox");
|
||||||
SkyBox::new(
|
SkyBox::new(
|
||||||
&mut world_builder,
|
&mut world_builder,
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in a new issue