MCPcopy Create free account
hub / github.com/Soulghost/Rust101 / pbr_lighting

Function pbr_lighting

ray_marching/src/material/pbr.rs:11–46  ·  view source on GitHub ↗
(
    hit: &'a HitResult<'a>,
    view: &Vector3f,
    normal: &Vector3f,
    light: &Vector3f,
    light_intensity: &Vector3f,
    // trick for ground
    replace_albedo: Option<Vector3f>,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

_cast_rayMethod · 0.85

Calls 7

lerpFunction · 0.85
normal_distribution_ggxFunction · 0.85
geometry_simthFunction · 0.85
fresnel_schlickFunction · 0.85
maxFunction · 0.70
normalizeMethod · 0.45
dotMethod · 0.45

Tested by

no test coverage detected