bevy/crates/bevy_render/src
Aevyrie 38c7d5eb9e Check for NaN in Camera::world_to_screen() (#3268)
# Objective

- Checks for NaN in computed NDC space coordinates, fixing unexpected NaN in a fallible (`Option<T>`) function.

## Solution

- Adds a NaN check, in addition to the existing NDC bounds checks.
- This is a helper function, and should have no performance impact to the engine itself.
- This will help prevent hard-to-trace NaN propagation in user code, by returning `None` instead of `Some(NaN)`.


Depends on https://github.com/bevyengine/bevy/pull/3269 for CI error fix.
2021-12-08 01:31:31 +00:00
..
camera Check for NaN in Camera::world_to_screen() (#3268) 2021-12-08 01:31:31 +00:00
mesh Fix clippy errors related to IntoIter::new (#3269) 2021-12-06 22:26:35 +00:00
pass update for wgpu 0.8 (#1959) 2021-05-02 20:45:25 +00:00
pipeline Implement and require #[derive(Component)] on all component structs (#2254) 2021-10-03 19:23:44 +00:00
render_graph Merge New Renderer 2021-11-22 23:57:42 -08:00
renderer Upgrade to wgpu 0.11 (#2933) 2021-10-08 19:55:24 +00:00
shader Fix CI for android (#2971) 2021-10-15 23:08:15 +00:00
texture Update to edition 2021 on master (#3028) 2021-10-27 00:12:14 +00:00
wireframe Implement and require #[derive(Component)] on all component structs (#2254) 2021-10-03 19:23:44 +00:00
color.rs fix: as_rgba_linear used wrong variant (#3192) 2021-11-26 12:57:05 +00:00
colorspace.rs color spaces and representation (#1572) 2021-03-17 23:59:51 +00:00
draw.rs Implement and require #[derive(Component)] on all component structs (#2254) 2021-10-03 19:23:44 +00:00
entity.rs Bevy ECS V2 (#1525) 2021-03-05 07:54:35 +00:00
lib.rs Fix clippy lints for 1.57 (#3238) 2021-12-02 23:40:37 +00:00