omni::connect::core::createLightExtentAttr

Defined in omni/connect/core/LightCompatibility.h

void omni::connect::core::createLightExtentAttr(pxr::UsdPrim prim, pxr::UsdTimeCode time = pxr::UsdTimeCode::Default())

Author the extent attribute for a UsdLuxCylinderLight, UsdLuxDiskLight, UsdLuxRectLight, UsdLuxSphereLight, or UsdLuxPortalLight.

Setting this attribute improves performance by negating the need to compute it on load.

Parameters
  • prim – The prim to author the attribute

  • time – The time at which the attribute value is written