mirror of
https://github.com/bevyengine/bevy
synced 2025-01-04 17:28:56 +00:00
56c70f8463
Currently, the prepass has no support for visibility ranges, so artifacts appear when using dithering visibility ranges in conjunction with a prepass. This patch fixes that problem. Note that this patch changes the prepass to use sparse bind group indices instead of sequential ones. I figured this is cleaner, because it allows for greater sharing of WGSL code between the forward pipeline and the prepass pipeline. The `visibility_range` example has been updated to allow the prepass to be toggled on and off. |
||
---|---|---|
.. | ||
mod.rs | ||
prepass.wgsl | ||
prepass_bindings.rs | ||
prepass_bindings.wgsl | ||
prepass_io.wgsl | ||
prepass_utils.wgsl |