2024-05-30 20:48:43 +02:00
|
|
|
/* SPDX-FileCopyrightText: 2023 Blender Authors
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2024-06-03 04:41:39 +02:00
|
|
|
#include <pxr/usd/usd/common.h>
|
2024-05-30 20:48:43 +02:00
|
|
|
#include <pxr/usd/usdLux/domeLight.h>
|
|
|
|
|
|
|
|
|
|
struct Main;
|
|
|
|
|
struct Scene;
|
|
|
|
|
|
|
|
|
|
namespace blender::io::usd {
|
|
|
|
|
|
|
|
|
|
struct USDExportParams;
|
|
|
|
|
struct USDImportParams;
|
|
|
|
|
|
2025-04-18 12:52:52 +00:00
|
|
|
/**
|
|
|
|
|
* If the Blender scene has an environment texture,
|
|
|
|
|
* export it as a USD dome light.
|
|
|
|
|
*/
|
2024-05-30 20:48:43 +02:00
|
|
|
void world_material_to_dome_light(const USDExportParams ¶ms,
|
|
|
|
|
const Scene *scene,
|
|
|
|
|
pxr::UsdStageRefPtr stage);
|
|
|
|
|
|
|
|
|
|
void dome_light_to_world_material(const USDImportParams ¶ms,
|
|
|
|
|
Scene *scene,
|
|
|
|
|
Main *bmain,
|
|
|
|
|
const pxr::UsdLuxDomeLight &dome_light,
|
2024-06-03 04:41:39 +02:00
|
|
|
const double motionSampleTime = 0.0);
|
2024-05-30 20:48:43 +02:00
|
|
|
|
|
|
|
|
} // namespace blender::io::usd
|