defineDomeLight#

Fully qualified name: usdex::core::defineDomeLight

pxr::UsdLuxDomeLight usdex::core::defineDomeLight(
pxr::UsdPrim prim,
float intensity = 1.0f,
std::optional<std::string_view> texturePath = std::nullopt,
const pxr::TfToken &textureFormat = pxr::UsdLuxTokens->automatic,
)#

Creates a dome light with an optional texture.

This is an overloaded member function, provided for convenience. It differs from the above function only in what arguments it accepts.

Parameters:
  • prim – Prim to define the dome light on. The prim’s type will be set to UsdLuxDomeLight.

  • intensity – The intensity value of the dome light

  • texturePath – The path to the texture file to use on the dome light.

  • textureFormat – How the texture should be mapped on the dome light.

Returns:

The light if created successfully.