File: module-Raymarching.md | Updated: 11/15/2025
Raymarching is an addon, and must be imported explicitly, see Installation#Addons.
import { RaymarchingBox } from 'three/addons/tsl/utils/Raymarching.js';
TSL function for performing raymarching in a box-area using the specified number of steps and a callback function.
RaymarchingBox( count, ( { positionRay } ) => {
} );
steps | The number of steps for raymarching.
---|---
callback | The callback function to execute at each step.