bevy/pipelined/bevy_render2/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
color fix calls to as_rgba_linear (#3200) 2021-11-28 10:40:42 +00:00
mesh Fix clippy errors related to IntoIter::new (#3269) 2021-12-06 22:26:35 +00:00
primitives Merge New Renderer 2021-11-22 23:57:42 -08:00
render_graph Document the new pipelined renderer (#3094) 2021-11-16 03:37:48 +00:00
render_phase Merge New Renderer 2021-11-22 23:57:42 -08:00
render_resource Expose command encoders (#3271) 2021-12-08 00:41:32 +00:00
renderer Document the new pipelined renderer (#3094) 2021-11-16 03:37:48 +00:00
texture Default image used in PipelinedSpriteBundle to be able to render without loading a texture (#3270) 2021-12-07 01:13:55 +00:00
view Merge New Renderer 2021-11-22 23:57:42 -08:00
lib.rs Shader Imports. Decouple Mesh logic from PBR (#3137) 2021-11-18 03:45:02 +00:00
render_asset.rs Sprite change image (#3207) 2021-12-01 23:09:31 +00:00
render_component.rs Implement iter() for mutable Queries (#2305) 2021-12-01 23:28:10 +00:00