Skip to main content

bumped

Function bumped 

Source
pub fn bumped(
    n: V3,
    q0: V3,
    q1: V3,
    st0: [f32; 2],
    st1: [f32; 2],
    dh: [f32; 2],
) -> V3
Expand description

The normal n tilted by a height field that changes by dh (per unit of u, per unit of v) in picture coordinates, on a surface as in normal_mapped: Mikkelsen’s surface gradient, heights in the model’s units.