bevy/crates/bevy_render
Ray Redondo 5012a0fd57
Update defaults for OrthographicProjection (#9537)
# Objective

These new defaults match what is used by `Camera2dBundle::default()`,
removing a potential footgun from overriding a field in the projection
component of the bundle.

## Solution

Adjusted the near clipping plane of `OrthographicProjection::default()`
to `-1000.`.

---

## Changelog

Changed: `OrthographicProjection::default()` now matches the value used
in `Camera2dBundle::default()`

## Migration Guide

Workarounds used to keep the projection consistent with the bundle
defaults are no longer required. Meanwhile, uses of
`OrthographicProjection` in 2D scenes may need to be adjusted; the
`near` clipping plane default was changed from `0.0` to `-1000.0`.
2023-08-28 17:31:56 +00:00
..
macros Bump Version after Release (#9106) 2023-07-10 21:19:27 +00:00
src Update defaults for OrthographicProjection (#9537) 2023-08-28 17:31:56 +00:00
Cargo.toml bevy_render: Remove direct dep on wgpu-hal. (#9249) 2023-07-23 12:43:28 +00:00