Blender V5.0
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 bNode;
10struct bNodeTree;
11
12struct Main;
13struct Scene;
14
15namespace blender::io::usd {
16
17struct USDExportParams;
18struct USDImportParams;
19
20/* This struct contains all DomeLight attribute needed to
21 * create a world environment */
23 float intensity;
24 pxr::GfVec3f color;
25 pxr::SdfAssetPath tex_path;
26 pxr::TfToken pole_axis;
27
29 bool has_tex;
30};
31
37 const Scene *scene,
38 pxr::UsdStageRefPtr stage);
39
41 Scene *scene,
42 Main *bmain,
43 const USDImportDomeLightData &dome_light_data,
44 const pxr::UsdPrim &prim,
45 const pxr::UsdTimeCode time = 0.0);
46
47} // 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 pxr::UsdTimeCode time)