Skip to content

VoxelSample

Defined in: sdk/src/voxel/field.ts:21

What a place in the volume is.

distance: number

Defined in: sdk/src/voxel/field.ts:23

How far to the surface, in world units: below zero is solid. Near the surface it should be about true; far from it, only the sign counts.


material: number

Defined in: sdk/src/voxel/field.ts:25

Which of the volume’s materials it is, 0 to 3.