mirror of
https://github.com/bevyengine/bevy
synced 2025-02-16 22:18:33 +00:00
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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue