omni::connect::core::defineRectLight

Defined in omni/connect/core/LightAlgo.h

pxr::UsdLuxRectLight omni::connect::core::defineRectLight(pxr::UsdPrim parent, const std::string &name, float width, float height, float intensity = 1.0f, const char *texturePath = nullptr)

Creates a rectangular (rect) 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

  • width – The width of the rectangular light, in the local X axis.

  • height – The height of the rectangular light, in the local Y axis.

  • intensity – The intensity value of the rectangular light.

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

Returns

The light if created successfully.