Three Blocks

SDFFieldShadowOptions

Per-call configuration for SDFFieldNodes.shadow.

SDF and raymarching

Import

import type { SDFFieldShadowOptions } from "three-blocks/sdf-raymarching";

Declaration

interface SDFFieldShadowOptions

Members

maxDistance

maxDistance?: TSLFloatInput | undefined;

Largest world-space distance marched toward the light.

lift

lift?: TSLFloatInput | undefined;

World-space clearance the sample is lifted to off the isosurface; defaults to smoothVoxels.

softness

softness?: TSLFloatInput | undefined;

Penumbra tightness; higher values harden the shadow edge.

Referenced by

SDFFieldNodes

Read as Markdown ↗