Settings
Forge scenes can provide a top-level RenderSettings object through let render = RenderSettings { ... };.
Example:
let render = RenderSettings {
width: 800,
height: 800,
max_steps: 360,
max_dist: 60.0,
epsilon: 0.0002,
step_scale: 0.7,
accel: Bvh{}
};
Core Render Settings
-
width,heightOutput image size in pixels. -
max_stepsMaximum raymarch steps per ray. -
max_distMaximum trace distance before the ray is treated as a miss. -
epsilonSurface hit threshold for raymarching and a base scale for ray offsets. -
step_scaleMultiplier applied to the raw SDF step size during marching. Default is0.7. Lower values are safer for non-ideal distance fields and smooth boolean scenes, but slower. -
accelAcceleration backend. Supported values:Naive{}Bvh{}Bricks{}
Notes
- CLI flags still override scene settings when both are provided.
step_scaleis currently important for scenes using smooth boolean operators, because not every operator behaves like a perfect conservative distance field yet.