Skip to content

Commit

Permalink
#80 Fix compile on GCC
Browse files Browse the repository at this point in the history
  • Loading branch information
ducphamhong committed May 17, 2022
1 parent d220058 commit 8f57c31
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions Projects/Skylicht/Collision/Source/Decal/CDecalsRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ namespace Skylicht

// Fill vertices and indices
{
video::SColor color(255, 255, 255, 255);

for (u32 p = 0; p < 3; p++)
{
core::vector3df uvPos = uvTriangle.pointA;
Expand Down Expand Up @@ -223,13 +225,13 @@ namespace Skylicht

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

vertices->addVertex(
&video::S3DVertex(
pos,
triangleNormal,
video::SColor(255, 255, 255, 255),
uv)
);
video::S3DVertex vtx(
pos,
triangleNormal,
color,
uv);

vertices->addVertex(&vtx);
vertexIndex++;
}

Expand Down

0 comments on commit 8f57c31

Please sign in to comment.