Skip to content

Commit

Permalink
Use proper coordinate to distinguish between point and directional li…
Browse files Browse the repository at this point in the history
…ght.
  • Loading branch information
mosra committed Jan 9, 2023
1 parent 11edc01 commit 3906aaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/esp/sim/BatchReplayRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ BatchReplayRenderer::BatchReplayRenderer(
range asserts in all functions so your "suggestions" are completely
unhelpful. */
std::size_t lightId; // NOLINT
if (light.vector.z()) {
if (light.vector.w()) {
renderer_.transformations(sceneId_)[nodeId] =
Mn::Matrix4::translation(light.vector.xyz());
lightId = renderer_.addLight(sceneId_, nodeId,
Expand Down

0 comments on commit 3906aaa

Please sign in to comment.