PyMaterialXRender.LightHandler

class LightHandler

Bases: pybind11_object

Utility light handler for creating and providing light data for shader binding.

See:

https://materialx.org/docs/api/class_light_handler.html

Methods

__init__(self)

addLightSource(self, arg0)

computeLightIdMap(self, arg0)

create()

findLights(self, arg0, arg1)

getAlbedoTable(self)

getDirectLighting(self)

getEnvIrradianceMap(self)

getEnvRadianceMap(self)

getEnvSampleCount(self)

getFirstLightOfCategory(self, arg0)

getIndirectLighting(self)

getLightIdMap(self)

getLightSources(self)

getLightTransform(self)

getRefractionTwoSided(self)

registerLights(self, arg0, arg1, arg2)

setAlbedoTable(self, arg0)

setDirectLighting(self, arg0)

setEnvIrradianceMap(self, arg0)

setEnvRadianceMap(self, arg0)

setEnvSampleCount(self, arg0)

setIndirectLighting(self, arg0)

setLightSources(self, arg0)

setLightTransform(self, arg0)

setRefractionTwoSided(self, arg0)

Methods

__init__(self: LightHandler) None
addLightSource(self: LightHandler, arg0: Node) None
computeLightIdMap(self: LightHandler, arg0: list[Node]) dict[str, int]
static create() LightHandler
findLights(self: LightHandler, arg0: Document, arg1: list[Node]) None
getAlbedoTable(self: LightHandler) Image
getDirectLighting(self: LightHandler) bool
getEnvIrradianceMap(self: LightHandler) Image
getEnvRadianceMap(self: LightHandler) Image
getEnvSampleCount(self: LightHandler) int
getFirstLightOfCategory(self: LightHandler, arg0: str) Node
getIndirectLighting(self: LightHandler) bool
getLightIdMap(self: LightHandler) dict[str, int]
getLightSources(self: LightHandler) list[Node]
getLightTransform(self: LightHandler) Matrix44
getRefractionTwoSided(self: LightHandler) int
registerLights(self: LightHandler, arg0: Document, arg1: list[Node], arg2: GenContext) None
setAlbedoTable(self: LightHandler, arg0: Image) None
setDirectLighting(self: LightHandler, arg0: bool) None
setEnvIrradianceMap(self: LightHandler, arg0: Image) None
setEnvRadianceMap(self: LightHandler, arg0: Image) None
setEnvSampleCount(self: LightHandler, arg0: int) None
setIndirectLighting(self: LightHandler, arg0: bool) None
setLightSources(self: LightHandler, arg0: list[Node]) None
setLightTransform(self: LightHandler, arg0: Matrix44) None
setRefractionTwoSided(self: LightHandler, arg0: bool) None