The glb_lights.py module#

Summary#

append_usd_lights_to_scene

Convert supported USD lights into glTF KHR_lights_punctual lights.

Description#

USD-to-glTF light conversion helpers.

Module detail#

glb_lights.append_usd_lights_to_scene(stage: Any, gltf: Any, scene: Any) None#

Convert supported USD lights into glTF KHR_lights_punctual lights.

Parameters:
stageAny

The USD stage containing the lights.

gltfAny

The glTF document to modify.

sceneAny

The glTF scene to which the lights will be added.