omni/connect/core/LightAlgo.h
File members: omni/connect/core/LightAlgo.h
// SPDX-FileCopyrightText: Copyright (c) 2022-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: LicenseRef-NvidiaProprietary
//
// NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
// property and proprietary rights in and to this material, related
// documentation and any modifications thereto. Any use, reproduction,
// disclosure or distribution of this material and related documentation
// without an express license agreement from NVIDIA CORPORATION or
// its affiliates is strictly prohibited.
#pragma once
#include "Api.h"
#include <pxr/base/tf/token.h>
#include <pxr/usd/sdf/path.h>
#include <pxr/usd/usd/prim.h>
#include <pxr/usd/usd/stage.h>
#include <pxr/usd/usdLux/domeLight.h>
#include <pxr/usd/usdLux/rectLight.h>
#include <pxr/usd/usdLux/tokens.h>
#include <string>
namespace omni::connect::core
{
OMNICONNECTCORE_API pxr::UsdLuxDomeLight defineDomeLight(
pxr::UsdStagePtr stage,
const pxr::SdfPath& path,
float intensity = 1.0f,
const char* texturePath = nullptr,
const pxr::TfToken& textureFormat = pxr::UsdLuxTokens->automatic
);
OMNICONNECTCORE_API pxr::UsdLuxDomeLight defineDomeLight(
pxr::UsdPrim parent,
const std::string& name,
float intensity = 1.0f,
const char* texturePath = nullptr,
const pxr::TfToken& textureFormat = pxr::UsdLuxTokens->automatic
);
OMNICONNECTCORE_API pxr::UsdLuxRectLight defineRectLight(
pxr::UsdStagePtr stage,
const pxr::SdfPath& path,
float width,
float height,
float intensity = 1.0f,
const char* texturePath = nullptr
);
OMNICONNECTCORE_API pxr::UsdLuxRectLight defineRectLight(
pxr::UsdPrim parent,
const std::string& name,
float width,
float height,
float intensity = 1.0f,
const char* texturePath = nullptr
);
} // namespace omni::connect::core