Skip to content

Commit

Permalink
Merge pull request #8 from AWildErin/fix/rmesh-lightmap
Browse files Browse the repository at this point in the history
fix: Make unk1 and unk2 the lightmap UVs
  • Loading branch information
AWildErin authored Sep 9, 2024
2 parents 7ff510d + b1e17e0 commit 08bf36f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions include/cbreader/rmesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ namespace rmesh
{
cbtypes::Vector3 vertex;
cbtypes::Vector2 uv;

float unk1{};
float unk2{};

cbtypes::Vector2 lightmapUV;

std::byte r{};
std::byte g{};
Expand Down
4 changes: 2 additions & 2 deletions src/rmesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ Mesh RMesh::ReadDrawnMesh(BufferStream& stream)
.read(vert.uv.x)
.read(vert.uv.y)

.read(vert.unk1)
.read(vert.unk2)
.read(vert.lightmapUV.x)
.read(vert.lightmapUV.y)

.read(vert.r)
.read(vert.g)
Expand Down

0 comments on commit 08bf36f

Please sign in to comment.