![]() I created a duplicate matrix and replaced it with 0. ![]() I need the position of the player to render it. The problem is that i get the position matrix like this: matrices.peek().getPositionMatrix() I want that the image is rendered once at full size (minX, minY) -> (maxX, maxY) This results in the image rendered multiple times in a grid and them constantly moving. The problem is that the headpitch affects the zoom and every movement of the player shifts the image. VertexConsumer2.vertex(matrix4f, minX, minY, 0f).color(1f, 1f, 1f, 1f).texture(minU, maxV).light(light).next() VertexConsumer2.vertex(matrix4f, maxX, minY, 0f).color(1f, 1f, 1f, 1f).texture(maxU, maxV).light(light).next() ![]() VertexConsumer2.vertex(matrix4f, maxX, maxY, 0f).color(1f, 1f, 1f, 1f).texture(maxU, minV).light(light).next() ![]() VertexConsumer2.vertex(matrix4f, minX, maxY, 0f).color(1f, 1f, 1f, 1f).texture(minU, minV).light(light).next() VertexConsumer vertexConsumer2 = vertexConsumers.getBuffer(RenderLayer.getText(texture)) I am using minecraft 1.20 and using a mixin in EntityRenderer renderLabelIfPresent.įloat minX = h - (float) textRenderer.fontHeight - 2f float maxX = h - 1f float minY = i - 1f float maxY = i + textRenderer.fontHeight float minU = 0 float maxU = 128 float minV = 0 float maxV = 128 ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |