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 test scene lit by a spherical area light

A sphere light behaves like an omnidirectional bulb with a finite size.#

USD declaration

Description

float inputs:radius = 0.5

Sphere radius in scene units.

bool treatAsPoint = false

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)