Fix glTF perspective camera projection (#4006)
# Objective - Fixes #4005 ## Solution - Include the `near` and `far` clipping values from the perspective projection in the `Camera` struct; before that, they were both being defaulted to 0.
This commit is contained in:
parent
544b6dfb86
commit
b4bf5b5d87
@ -515,6 +515,8 @@ fn load_node(
|
||||
node.insert(Camera {
|
||||
name: Some(CameraPlugin::CAMERA_3D.to_owned()),
|
||||
projection_matrix: perspective_projection.get_projection_matrix(),
|
||||
near: perspective_projection.near,
|
||||
far: perspective_projection.far,
|
||||
..Default::default()
|
||||
});
|
||||
node.insert(perspective_projection);
|
||||
|
Loading…
Reference in New Issue
Block a user