Sphere Light#
A SphereLight emits outwards in every direction. Increase its radius for a
larger visible source and softer shadows. It also uses the
common light attributes.
A sphere light behaves like an omnidirectional bulb with a finite size.#
USD declaration |
Description |
|---|---|
|
Sphere radius in scene units. |
|
Allows the renderer to treat the source as a zero-radius point light. |
The following examples create a sphere light with a 0.05 scene-unit radius:
def SphereLight "Bulb"
{
float inputs:radius = 0.05
bool treatAsPoint = false
}
light = UsdLux.SphereLight.Define(stage, "/World/Bulb")
light.GetRadiusAttr().Set(0.05)
light.GetTreatAsPointAttr().Set(False)