Blender
V5.0
source
blender
io
usd
intern
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
9
struct
bNode
;
10
struct
bNodeTree
;
11
12
struct
Main
;
13
struct
Scene
;
14
15
namespace
blender::io::usd
{
16
17
struct
USDExportParams
;
18
struct
USDImportParams
;
19
20
/* This struct contains all DomeLight attribute needed to
21
* create a world environment */
22
struct
USDImportDomeLightData
{
23
float
intensity
;
24
pxr::GfVec3f
color
;
25
pxr::SdfAssetPath
tex_path
;
26
pxr::TfToken
pole_axis
;
27
28
bool
has_color
;
29
bool
has_tex
;
30
};
31
36
void
world_material_to_dome_light
(
const
USDExportParams
&
params
,
37
const
Scene
*scene,
38
pxr::UsdStageRefPtr stage);
39
40
void
dome_light_to_world_material
(
const
USDImportParams
&
params
,
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
params
uiWidgetBaseParameters params[MAX_WIDGET_BASE_BATCH]
Definition
interface_widgets.cc:1066
blender::io::usd
Definition
usd_armature_utils.cc:24
blender::io::usd::world_material_to_dome_light
void world_material_to_dome_light(const USDExportParams ¶ms, const Scene *scene, pxr::UsdStageRefPtr stage)
Definition
usd_light_convert.cc:142
blender::io::usd::dome_light_to_world_material
void dome_light_to_world_material(const USDImportParams ¶ms, Scene *scene, Main *bmain, const USDImportDomeLightData &dome_light_data, const pxr::UsdPrim &prim, const pxr::UsdTimeCode time)
Definition
usd_light_convert.cc:222
Main
Definition
BKE_main.hh:160
Scene
Definition
DNA_scene_types.h:2120
bNodeTree
Definition
DNA_node_types.h:759
bNode
Definition
DNA_node_types.h:422
blender::io::usd::USDExportParams
Definition
usd.hh:127
blender::io::usd::USDImportDomeLightData
Definition
usd_light_convert.hh:22
blender::io::usd::USDImportDomeLightData::tex_path
pxr::SdfAssetPath tex_path
Definition
usd_light_convert.hh:25
blender::io::usd::USDImportDomeLightData::intensity
float intensity
Definition
usd_light_convert.hh:23
blender::io::usd::USDImportDomeLightData::pole_axis
pxr::TfToken pole_axis
Definition
usd_light_convert.hh:26
blender::io::usd::USDImportDomeLightData::color
pxr::GfVec3f color
Definition
usd_light_convert.hh:24
blender::io::usd::USDImportDomeLightData::has_tex
bool has_tex
Definition
usd_light_convert.hh:29
blender::io::usd::USDImportDomeLightData::has_color
bool has_color
Definition
usd_light_convert.hh:28
blender::io::usd::USDImportParams
Definition
usd.hh:190
Generated on
for Blender by
doxygen
1.16.1