Bevy-Rust-GPU / rust-gpu-sdf

Signed distance field library usable on both CPU and GPU.
Apache License 2.0
12 stars 1 forks source link

Support raymarching distance in prepass, shading in main pass #16

Open Shfty opened 1 year ago

Shfty commented 1 year ago

Seeing as #15 is non-viable for now, the prepass could be put to better use by building the SDF equivalent of the basic depth shader. This would allow the fragment shader to skip raymarching entirely when the prepass is enabled, putting its implementation more in line with a regular geometry-based fragment shader beyond the initial texture read.