File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -79,13 +79,13 @@ void HnCamera::Sync(pxr::HdSceneDelegate* SceneDelegate,
7979 // Reading the attribute will return same value:
8080 // float focalLength;
8181 // UsdCamera.GetFocalLengthAttr().Get(&focalLength); // focalLength == 30
82- // However
82+ //
83+ // Scene delegate, however, applies 0.1 scale when reading the property, so we don't need to
8384 // focalLength = SceneDelegate->GetCameraParamValue(id, HdCameraTokens->focalLength).Get<float>(); // focalLength == 3
84- constexpr float UsdCamLensUnitScale = 10 ;
85- const float HorzApertureUnits = GetHorizontalAperture () * UsdCamLensUnitScale;
86- const float VertApertureUnits = GetVerticalAperture () * UsdCamLensUnitScale;
87- const float FocalLengthUnits = GetFocalLength () * UsdCamLensUnitScale;
88- const pxr::GfRange1f ClippingRangeUnits = GetClippingRange ();
85+ const float HorzApertureUnits = GetHorizontalAperture ();
86+ const float VertApertureUnits = GetVerticalAperture ();
87+ const float FocalLengthUnits = GetFocalLength ();
88+ const pxr::GfRange1f ClippingRangeUnits = GetClippingRange ();
8989
9090 // Diligent expects camera attributes in world units
9191 const float HorzApertureMeters = HorzApertureUnits * MetersPerUnit;
You can’t perform that action at this time.
0 commit comments