Skip to content

Commit

Permalink
Fix orientation of exported (USD captures) distant lights. Comply wit…
Browse files Browse the repository at this point in the history
…h the USD standard: -Z axis must point from the sun to the earth.

See merge request lightspeedrtx/dxvk-remix-nv!888
  • Loading branch information
sultim-t-nv authored and nsubtil committed Jul 15, 2024
1 parent ae44ac0 commit 168b432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dxvk/rtx_render/rtx_game_capturer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ namespace dxvk {
distantLight.color[2] = colorAndIntensity.b;
distantLight.intensity = colorAndIntensity.w;
distantLight.angleDegrees = rtLight.getHalfAngle() * 2.0 * kRadiansToDegrees;
distantLight.direction = -pxr::GfVec3f(rtLight.getDirection().data);
distantLight.direction = pxr::GfVec3f(rtLight.getDirection().data);
distantLight.firstTime = m_pCap->currentFrameNum;
Logger::debug("[GameCapturer][" + m_pCap->idStr + "][DistantLight:" + name + "] New");
}
Expand Down

0 comments on commit 168b432

Please sign in to comment.