37 pxr::GfMatrix4d *r_transform)
39 pxr::GfVec3f
color(1.0f, 1.0f, 1.0f);
40 float intensity = 1.0f;
41 pxr::SdfAssetPath texture_file;
46 if (use_scene_world) {
56 if (!file_path.empty()) {
57 texture_file = pxr::SdfAssetPath(file_path, file_path);
66 texture_file = pxr::SdfAssetPath(file_path, file_path);
71 color = pxr::GfVec3f(0.0f, 0.0f, 0.0f);
88 transform = pxr::GfMatrix4d().SetRotate(pxr::GfRotation(
95 b.add(pxr::UsdLuxTokens->orientToStageUpAxis,
true);
96 b.add(pxr::HdLightTokens->intensity, intensity);
97 b.add(pxr::HdLightTokens->exposure, 0.0f);
99 b.add(pxr::HdLightTokens->textureFile, texture_file);
107 const pxr::SdfPath &world_path,
108 const bool world_shading_changed)
111 inputs.world = scene->
world;
120 if (used_ && inputs == cached_inputs_ && !world_shading_changed) {
125 pxr::GfMatrix4d world_transform(1.0);
127 bmain, scene, view3d, &world_transform);
130 world_params, world_transform,
true);
131 ctx.
emit_prim(world_path, pxr::HdPrimTypeTokens->domeLight, world_prim);
133 used_ = (world_params !=
nullptr);
134 cached_inputs_ = inputs;
Set< pxr::SdfPath > new_paths
void emit_prim(const pxr::SdfPath &path, const pxr::TfToken &type, const pxr::HdContainerDataSourceHandle &ds)