Documentation / Node reference / mat nodes

mat/RaymarchingBuilder

Creates a raymarched material from the code SDF nodes inside it.

Builder

Describe a shape with code SDF nodes inside it. The material draws it by marching rays per pixel, so it stays smooth at any distance. Draw it on an object that contains the shape, such as a box.

Parameters

Name Type What it does
pass UInt8 ALL · P · N · ALBEDO · AO What the material shows.
samples UInt8 Rays per pixel. More softens edges, at a cost.
maxSteps UInt32 Most steps per ray. Too few eats away the shape.
maxDist Float Distance after which a ray counts as a miss.
surfDist Float How close a ray must get to hit.
normalBias Float Offset for reading normals. Too small shows speckles.
aoSamples UInt32 Ambient occlusion samples. 0 turns it off.
rayOriginOnSurface Float 1 starts rays on the surface, 0 at the camera.
transparencyMode UInt8 AUTO · OPAQUE · MASK · BLEND How the material's alpha is drawn.
sides UInt8 FRONT · BACK · BOTH Which side of each triangle is drawn.

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.