Skip to content

Commit

Permalink
Fix ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
IMS212 committed Jun 28, 2024
1 parent d32d171 commit 9e46f37
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ private void injectMidBlock(float x, float y, float z, CallbackInfoReturnable<Ve
return;
}

// We can't fill these yet.
this.elementsToFill = this.elementsToFill & ~IrisVertexFormats.MID_TEXTURE_ELEMENT.mask();
this.elementsToFill = this.elementsToFill & ~IrisVertexFormats.TANGENT_ELEMENT.mask();

if (skipEndVertexOnce) {
skipEndVertexOnce = false;
return;
Expand All @@ -168,10 +172,6 @@ private void injectMidBlock(float x, float y, float z, CallbackInfoReturnable<Ve
this.setNormal(0, 0, 0);
}

// We can't fill these yet.
this.elementsToFill = this.elementsToFill & ~IrisVertexFormats.MID_TEXTURE_ELEMENT.mask();
this.elementsToFill = this.elementsToFill & ~IrisVertexFormats.TANGENT_ELEMENT.mask();

iris$vertexCount++;

if (mode == VertexFormat.Mode.QUADS && iris$vertexCount == 4 || mode == VertexFormat.Mode.TRIANGLES && iris$vertexCount == 3) {
Expand Down

0 comments on commit 9e46f37

Please sign in to comment.