defineDomeLight#

Fully qualified name: usdex::core::defineDomeLight

pxr::UsdLuxDomeLight usdex::core::defineDomeLight(
pxr::UsdPrim parent,
const std::string &name,
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:
  • parent – Prim below which to define the light

  • name – Name of the light

  • 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.