Skip to main content

PROXY_MARGIN

Constant PROXY_MARGIN 

Source
pub const PROXY_MARGIN: f32 = 1.02;
Expand description

Radius of the coarse render-proxy sphere: the analytic water radius inflated by a small margin so the proxy’s faceted silhouette always covers the true (smooth) sphere’s silhouette — rays that miss the analytic sphere are discarded in-shader, so the proxy only needs to over-cover, never under.