Skip to content

Commit

Permalink
bevy_render2: Make default near plane more sensible at 0.1 (#2703)
Browse files Browse the repository at this point in the history
# Objective

The default perspective projection near plane being at 1 unit feels very far away if one considers units to directly map to real world units such as metres. Not being able to see anything that is closer than 1m is unnecessarily limiting. Using a default of 0.1 makes more sense as it is difficult to even focus on things closer than 10cm in the real world.

## Solution

- Changed the default perspective projection near plane to 0.1.
  • Loading branch information
superdump committed Aug 23, 2021
1 parent 3faca93 commit 993ce84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipelined/bevy_render2/src/camera/projection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl Default for PerspectiveProjection {
fn default() -> Self {
PerspectiveProjection {
fov: std::f32::consts::PI / 4.0,
near: 1.0,
near: 0.1,
far: 1000.0,
aspect_ratio: 1.0,
}
Expand Down

0 comments on commit 993ce84

Please sign in to comment.