functionalize.functionalize_scene_parametric

functionalize.functionalize_scene_parametric(geometry)

Compile a scene so its parameters are arguments, not literals.

The :func:functionalize_parametric of :func:functionalize_scene: one lowered program serves every value of every parameter, which is what makes a shader’s uniform block possible and what makes the on-disk compilation cache hit across edits and processes.

Parameters

Name Type Description Default
geometry Root SDF node of the geometry tree. required

Returns

Name Type Description
Callable fn(free_params, fixed_params, point) -> (distance, material dict).