@pmndrs/reflections
    Preparing search index...

    Function probeProxyShareFunctionWgsl

    • WGSL fn <name>(table: ptr<storage, array<vec4f>, read>, P: vec3f, dir: vec3f, near: f32, far: f32) -> f32: the share of the probe term at P along dir (volumes by weight, then the environment, as the lookup blends them) whose box-projected surface lies nearer than near along the ray, fading to 0 at far. The environment and volumes without box projection count as infinitely far. Pass the direction the lookup samples (R, or its dominant direction if the lookup bends it). A resolve uses it to tell whether the probe can be what a ray sees: a screen-space hit at distance h with share(h + tolerance) = 0 means the probe's surface is behind the hit (DIVERGES D2400). Needs probeLookupIncludesWgsl in the module. count unrolls the volume loop as in the lookup.

      Parameters

      Returns string