Blender V4.5
usd_light_convert.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4#pragma once
5
6#include <pxr/usd/sdf/types.h>
7#include <pxr/usd/usd/common.h>
8
9struct Main;
10struct Scene;
11
12namespace blender::io::usd {
13
14struct USDExportParams;
15struct USDImportParams;
16
17/* This struct contains all DomeLight attribute needed to
18 * create a world environment */
20 float intensity;
21 pxr::GfVec3f color;
22 pxr::SdfAssetPath tex_path;
23 pxr::TfToken pole_axis;
24
26 bool has_tex;
27};
28
34 const Scene *scene,
35 pxr::UsdStageRefPtr stage);
36
38 Scene *scene,
39 Main *bmain,
40 const USDImportDomeLightData &dome_light_data,
41 const pxr::UsdPrim &prim,
42 const double motionSampleTime = 0.0);
43
44} // namespace blender::io::usd
uiWidgetBaseParameters params[MAX_WIDGET_BASE_BATCH]
void world_material_to_dome_light(const USDExportParams &params, const Scene *scene, pxr::UsdStageRefPtr stage)
void dome_light_to_world_material(const USDImportParams &params, Scene *scene, Main *bmain, const USDImportDomeLightData &dome_light_data, const pxr::UsdPrim &prim, const double motionSampleTime)