Начинающий
Начинающий
- Статус
- Оффлайн
- Регистрация
- 1 Ноя 2023
- Сообщения
- 60
- Реакции
- 3
Подскажите плз как сделать что б оно рендерило цвет не full последний в данном случае синий, а именно по кругу как градиент ...
Java:
Tessellactor tessellactor = Tessellactor.getInstance();
BufferBuilder buffer = tessellactor.getBuffer();
mc.getTextureManager().bindTexture(new ResourceLocation("../markers/target.png"));
buffer.begin(7, POSITION_TEX_COLOR);
buffer.pos(matrix.getLast().getMatrix(), 0, 0, 0).tex(0, 0).color(0, 0, 0, 255).endVertex();
buffer.pos(matrix.getLast().getMatrix(), 0, 1, 0).tex(0, 1).color(255, 0, 0, 255).endVertex();
buffer.pos(matrix.getLast().getMatrix(), 1, 1, 0).tex(1, 1).color(0, 255, 0, 255).endVertex();
buffer.pos(matrix.getLast().getMatrix(), 1, 0, 0).tex(1, 0).color(0, 0, 255, 255).endVertex();
tessellactor.draw();