Skip to content

Commit 39fa6a7

Browse files
mmdanggg2MarkEHenderson
authored andcommitted
Fix distant lights not updating their rotation
1 parent 3afe623 commit 39fa6a7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/dxvk/rtx_render/rtx_lights.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,7 @@ void RtDistantLight::applyTransform(const Matrix4& lightToWorld) {
474474
const Matrix3 transform(lightToWorld);
475475

476476
m_direction = normalize(transform * m_direction);
477+
m_orientation = getOrientation(Vector3(0.0f, 0.0f, 1.0f), m_direction);
477478

478479
updateCachedHash();
479480
}

0 commit comments

Comments
 (0)