Three Blocks

SDFFieldNodesSource

Generated field consumed by sdfFieldNodes; both SDF generators satisfy it.

SDF and raymarching

Import

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

Declaration

interface SDFFieldNodesSource

Members

sdfTexture

readonly sdfTexture: THREE.Storage3DTexture | null;

Generator-owned r32float volume holding world-unit signed distances.

resolution

readonly resolution: number;

Cubic voxel dimension of the volume.

inverseBoundsMatrix

readonly inverseBoundsMatrix: THREE.Matrix4;

World to normalized-volume transform.

boundsMatrix

readonly boundsMatrix: THREE.Matrix4;

Normalized-volume to world transform.

Referenced by

sdfFieldNodes

Read as Markdown ↗