Blender
V4.5
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
Main
;
10
struct
Scene
;
11
12
namespace
blender::io::usd
{
13
14
struct
USDExportParams
;
15
struct
USDImportParams
;
16
17
/* This struct contains all DomeLight attribute needed to
18
* create a world environment */
19
struct
USDImportDomeLightData
{
20
float
intensity
;
21
pxr::GfVec3f
color
;
22
pxr::SdfAssetPath
tex_path
;
23
pxr::TfToken
pole_axis
;
24
25
bool
has_color
;
26
bool
has_tex
;
27
};
28
33
void
world_material_to_dome_light
(
const
USDExportParams
&
params
,
34
const
Scene
*scene,
35
pxr::UsdStageRefPtr stage);
36
37
void
dome_light_to_world_material
(
const
USDImportParams
&
params
,
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
params
uiWidgetBaseParameters params[MAX_WIDGET_BASE_BATCH]
Definition
interface_widgets.cc:1056
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:227
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 double motionSampleTime)
Definition
usd_light_convert.cc:350
Main
Definition
BKE_main.hh:141
Scene
Definition
DNA_scene_types.h:2106
blender::io::usd::USDExportParams
Definition
usd.hh:127
blender::io::usd::USDImportDomeLightData
Definition
usd_light_convert.hh:19
blender::io::usd::USDImportDomeLightData::tex_path
pxr::SdfAssetPath tex_path
Definition
usd_light_convert.hh:22
blender::io::usd::USDImportDomeLightData::intensity
float intensity
Definition
usd_light_convert.hh:20
blender::io::usd::USDImportDomeLightData::pole_axis
pxr::TfToken pole_axis
Definition
usd_light_convert.hh:23
blender::io::usd::USDImportDomeLightData::color
pxr::GfVec3f color
Definition
usd_light_convert.hh:21
blender::io::usd::USDImportDomeLightData::has_tex
bool has_tex
Definition
usd_light_convert.hh:26
blender::io::usd::USDImportDomeLightData::has_color
bool has_color
Definition
usd_light_convert.hh:25
blender::io::usd::USDImportParams
Definition
usd.hh:191
Generated on
for Blender by
doxygen
1.15.0