Skip to content

Commit

Permalink
#80 Fix compile error on GCC
Browse files Browse the repository at this point in the history
  • Loading branch information
ducphamhong committed May 17, 2022
1 parent 937a6d0 commit 3479d6c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Projects/Skylicht/Collision/Source/Decal/CDecalsRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,14 @@ namespace Skylicht

pos += triangleNormal * decal->Distance;

core::vector2df uv(uvPos.X, 1.0f - uvPos.Z);

vertices->addVertex(
&video::S3DVertex(
pos,
triangleNormal,
video::SColor(255, 255, 255, 255),
core::vector2df(uvPos.X, 1 - uvPos.Z))
uv)
);
vertexIndex++;
}
Expand Down

0 comments on commit 3479d6c

Please sign in to comment.