bevy/crates/bevy_pbr/src
robtfm d2dad4eed2
fix orthographic cluster aabb for spotlight culling (#9614)
# Objective

fix #9605

spotlight culling uses an incorrect cluster aabb for orthographic
projections: it does not take into account the near and far cluster
bounds at all.

## Solution

use z_near and z_far to determine cluster aabb in orthographic mode.

i'm not 100% sure this is the only change that's needed, but i am sure
this change is needed, and the example seems to work well now
(CLUSTERED_FORWARD_DEBUG_CLUSTER_LIGHT_COMPLEXITY shows good bounds
around the cone for a variety of orthographic setups).
2023-10-08 22:53:09 +00:00
..
environment_map Bevy Asset V2 (#8624) 2023-09-07 02:07:27 +00:00
prepass Use EntityHashMap<Entity, T> for render world entity storage for better performance (#9903) 2023-09-27 08:28:28 +00:00
render fix webgl2 crash (#10053) 2023-10-08 22:07:16 +00:00
ssao Bevy Asset V2 (#8624) 2023-09-07 02:07:27 +00:00
alpha.rs bevy_reflect: FromReflect Ergonomics Implementation (#6056) 2023-06-29 01:31:34 +00:00
bundle.rs Fix a typo in DirectionalLightBundle (#9861) 2023-09-20 04:44:56 +00:00
fog.rs bevy_reflect: FromReflect Ergonomics Implementation (#6056) 2023-06-29 01:31:34 +00:00
lib.rs PCF For DirectionalLight/SpotLight Shadows (#8006) 2023-10-07 17:13:29 +00:00
light.rs fix orthographic cluster aabb for spotlight culling (#9614) 2023-10-08 22:53:09 +00:00
material.rs Refactor the render instance logic in #9903 so that it's easier for other components to adopt. (#10002) 2023-10-08 10:34:44 +00:00
parallax.rs bevy_reflect: FromReflect Ergonomics Implementation (#6056) 2023-06-29 01:31:34 +00:00
pbr_material.rs Fix typos. (#9922) 2023-09-25 18:35:46 +00:00
wireframe.rs Alternate wireframe override api (#10023) 2023-10-05 12:12:08 +00:00