Three Blocks

SDFFieldNodesOptions

Construction configuration for sdfFieldNodes.

SDF and raymarching

Import

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

Declaration

interface SDFFieldNodesOptions

Members

far

far?: number | undefined;

Signed distance reported outside the volume; keeps marches terminating instead of smearing the clamped edge.

shadowSteps

shadowSteps?: number | undefined;

Sphere-tracing iterations spent by SDFFieldNodes.shadow.

occlusionSamples

occlusionSamples?: number | undefined;

Cone taps spent by SDFFieldNodes.occlusion.

trustVoxels

trustVoxels?: number | undefined;

How many voxels below the isosurface a shading point may read before the samplers stop trusting it and report no occlusion. Must exceed the generator's shell radius in voxels.

smoothVoxels

smoothVoxels?: number | undefined;

How many voxels clear of the surface every sample is taken. It must exceed the error in the caller's surface points - for a Gaussian capture, a voxel or two - or the readings are noise. Raise it for a fuzzier source; the field loses detail it cannot resolve anyway.

Referenced by

sdfFieldNodes

Read as Markdown ↗