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