render.raymarch.render.raymarch

render.raymarch.render.raymarch(
    sdf,
    camera_pos=jnp.array([5.0, 5.0, 5.0]),
    look_at=jnp.array([0.0, 0.0, 0.0]),
    light_dirs=jnp.array([0.5, 1.0, 0.3]),
    light_colors=None,
    resolution=(200, 200),
    fov=0.6,
    max_steps=96,
    max_dist=20.0,
    hit_epsilon=0.001,
    step_scale=0.9,
    normal_eps=0.001,
    shadow_steps=32,
    shadow_distance=20.0,
    shadow_hardness=12.0,
    ambient=0.12,
    aa_samples=1,
    silhouette_smoothing=0.75,
    exposure=1.0,
    tone_mapping='aces',
    gamma=2.2,
    background_color=jnp.array([0.0, 0.0, 0.0]),
    reflect_steps=0,
    refract_steps=0,
    env_map=None,
)

Render an SDF to an (height, width, 3) NumPy image.

This compatibility-oriented convenience function exposes individual controls. New code can group the same values with :class:RenderSettings and call :func:render_scene.