Skip to content

Commit

Permalink
xrRender_R1: Properly unpack lightmap texture coords (#1313)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed May 7, 2023
1 parent a02a74a commit be2953a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Common/OGF_GContainer_Vertices.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ struct r1v_lmap_unpacked

tc0x = (packed.tc0x + T.a) * (32.f / 32768.f);
tc0y = (packed.tc0y + B.a) * (32.f / 32768.f);
tc1x = tc0x;
tc1y = tc0y;
tc1x = packed.tc1x * (1.f / 32768.f);
tc1y = packed.tc1y * (1.f / 32768.f);

return *this;
}
Expand Down

0 comments on commit be2953a

Please sign in to comment.