Skip to main content

trace_default

Function trace_default 

Source
pub fn trace_default(
    ray: Ray,
    occluders: &[Occluder],
    lights: &LightingUniforms,
) -> Vector3D
Expand description

Convenience wrapper that traces a ray using the [RAYTRACE_DEFAULT_MAX_BOUNCES] constant as the bounce limit.

§Arguments

  • Ray - The ray to trace.
  • &[Occluder] - All occluding surfaces in the scene.
  • &LightingUniforms - Lighting parameters used during shading.

§Returns

  • Vector3D - The final traced color.