Three Blocks

SDFFieldOcclusionOptions

Per-call configuration for SDFFieldNodes.occlusion.

SDF and raymarching

Import

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

Declaration

interface SDFFieldOcclusionOptions

Members

radius

radius?: TSLFloatInput | undefined;

World-space cone length searched along the normal; keep it well above the sample clearance.

intensity

intensity?: TSLFloatInput | undefined;

Darkening applied to the measured occlusion; zero returns one.

lift

lift?: TSLFloatInput | undefined;

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

Referenced by

SDFFieldNodes

Read as Markdown ↗