Open JMS55 opened 1 month ago
https://www.sebastiansylvan.com/post/improving-shadow-map-utilization-for-cascaded-shadow-maps
Also note that we're currently using an infinitely far away near plane https://github.com/bevyengine/bevy/blob/9274bfed277725e8987f8755931dc4d83e5fa08f/crates/bevy_pbr/src/render/light.rs#L1309-L1311
which is a bad idea because it destroys depth buffer precision.
Although, this might only be for culling, and not rendering? Needs more investigation.
The infinite near plane is just for culling. But I think also culling against the near plane is skipped.
https://www.sebastiansylvan.com/post/improving-shadow-map-utilization-for-cascaded-shadow-maps
Also note that we're currently using an infinitely far away near plane https://github.com/bevyengine/bevy/blob/9274bfed277725e8987f8755931dc4d83e5fa08f/crates/bevy_pbr/src/render/light.rs#L1309-L1311
which is a bad idea because it destroys depth buffer precision.
Although, this might only be for culling, and not rendering? Needs more investigation.