Documentation / Node reference / mat nodes

mat/MeshSDF

Tunes how SDF objects are raymarched.

Sdf

Sets how SDF objects are drawn: the march, the surface, self shadows, ambient occlusion and glass. Raise maxStepsCount when a shape shows holes. A 2D object reads only bandSpacing and isoValue.

Parameters

Name Type What it does
maxStepsCount UInt32 Most steps a ray takes. Too few shows holes.
maxDistance Float How far a ray goes before giving up.
surfaceDistance Float How close counts as a hit. Smaller is crisper.
normalsBias Float Normal sample offset. 0 picks it automatically.
color Color Surface colour.
roughness Float Surface roughness. 0 is a mirror.
metallic Float How metallic the surface is.
emissive Color Colour the surface gives off by itself.
roughnessTexture NodePath TEX node whose red channel varies the roughness.
roughnessTextureScale Float Size one repeat of the texture covers.
roughnessTextureAmount Float How far the texture replaces the roughness. 0 is off.
debugView UInt8 NONE · STEP_COUNT · NORMAL · BOUNDS · AMBIENT_OCCLUSION · ROUGHNESS Replaces the shading with a debug view.
bandSpacing Float 2D only: distance between the bands.
isoValue Float Draw where the field equals this. Positive inflates.
softShadows Bool Include soft self shadows in the shader.
shadowSoftness Float Width of self shadows. 0 uses regular shadows.
shadowStepsCount UInt32 Step budget of the shadow march.
ambientOcclusion Bool Include ambient occlusion in the shader.
aoStrength Float Darkens creases. 0 is off.
aoRadius Float Size of the creases ambient occlusion darkens.
gridFiltering UInt8 TRILINEAR · TRICUBIC How a voxel field is read between voxels.
transmission Float How much light passes through. 1 is clear glass.
ior Float Index of refraction. 1.5 is glass, 1.33 water.
attenuationColor Color Colour light turns inside the medium.
attenuationDistance Float Distance to reach attenuationColor. 0 absorbs nothing.
transmissionDepth UInt32 Times a ray may bounce inside the medium.
dispersion Float Splits light into colours. 0 is off.

See also

This page is generated from the engine, so it describes the release you can download. The same text is in the editor's Help panel next to the node itself.