IBL has a wrong coordinates in render #85

Merged
Bogdan Nagirniak merged 1 commits from Vasyl-Pidhirskyi/blender_bn:BLEN-483 into hydra-render 2023-08-03 17:20:15 +02:00
3 changed files with 4 additions and 8 deletions

View File

@ -61,9 +61,6 @@ pxr::GfMatrix4d HydraSceneDelegate::GetTransform(pxr::SdfPath const &id)
if (obj_data) {
return obj_data->transform;
}
if (id == world_prim_id()) {
return world_data_->transform;
}
return pxr::GfMatrix4d();
}

View File

@ -20,6 +20,10 @@
namespace blender::io::hydra {
class ObjectData : public IdData {
public:
pxr::GfMatrix4d transform;
bool visible = true;
public:
ObjectData(HydraSceneDelegate *scene_delegate, Object *object, pxr::SdfPath const &prim_id);
@ -38,9 +42,6 @@ class ObjectData : public IdData {
virtual pxr::SdfPath material_id(pxr::SdfPath const &id) const;
virtual void available_materials(Set<pxr::SdfPath> &paths) const;
pxr::GfMatrix4d transform;
bool visible = true;
protected:
virtual void write_transform();
virtual void write_materials();

View File

@ -20,8 +20,6 @@ namespace blender::io::hydra {
class WorldData : public LightData {
public:
pxr::GfMatrix4d transform;
WorldData(HydraSceneDelegate *scene_delegate, pxr::SdfPath const &prim_id);
void init() override;