omni::connect::core::defineDomeLight

Defined in omni/connect/core/LightAlgo.h

pxr::UsdLuxDomeLight omni::connect::core::defineDomeLight(pxr::UsdPrim parent, const std::string &name, float intensity = 1.0f, const char *texturePath = nullptr, 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.