eradiate.kernel.DictParameter

class eradiate.kernel.DictParameter(func)[source]

Bases: object

This class declares an Eradiate parameter in a Mitsuba scene dictionary. It holds an evaluation protocol for this parameter depending on context information.

Parameters:

func (callable()) – A callable that returns the value of the parameter for a given context, with signature f(ctx: KernelContext) -> Any.

Fields:

func (callable()) – A callable that returns the value of the parameter for a given context, with signature f(ctx: KernelContext) -> Any.

UNUSED = <object object>

Sentinel value indicating that a parameter is not used