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:
Kirillov Kirill 2022-02-21 23:29:32 +00:00
parent 544b6dfb86
commit b4bf5b5d87

View file

@ -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);