Skip to content

Commit

Permalink
Fix critical entity rendering bug
Browse files Browse the repository at this point in the history
  • Loading branch information
IMS212 committed Jul 1, 2024
1 parent cc59f5e commit 5d3d7a1
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,18 +160,17 @@ private void injectMidBlock(float x, float y, float z, CallbackInfoReturnable<Ve
this.elementsToFill = this.elementsToFill & ~IrisVertexFormats.MID_TEXTURE_ELEMENT.mask();
this.elementsToFill = this.elementsToFill & ~IrisVertexFormats.TANGENT_ELEMENT.mask();

if (injectNormalAndUV1 && this.elementsToFill != (this.elementsToFill & ~VertexFormatElement.NORMAL.mask())) {
this.setNormal(0, 0, 0);
}

if (skipEndVertexOnce) {
skipEndVertexOnce = false;
return;
}


vertexPointers[iris$vertexCount] = vertexPointer;

if (injectNormalAndUV1 && this.elementsToFill != (this.elementsToFill & ~VertexFormatElement.NORMAL.mask())) {
this.setNormal(0, 0, 0);
}

iris$vertexCount++;

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

0 comments on commit 5d3d7a1

Please sign in to comment.