use of net.minecraft.client.render.OutlineVertexConsumerProvider in project KiwiClient by TangyKiwi.
the class OutlineVertexConsumers method outlineOnlyProvider.
public static VertexConsumerProvider outlineOnlyProvider(float r, float g, float b, float a) {
OutlineVertexConsumerProvider vertexProvider = MinecraftClient.getInstance().getBufferBuilders().getOutlineVertexConsumers();
vertexProvider.setColor((int) (r * 255), (int) (g * 255), (int) (b * 255), (int) (a * 255));
return new Override(vertexProvider);
}
use of net.minecraft.client.render.OutlineVertexConsumerProvider in project Client by MatHax.
the class EntityShaders method initOutlines.
// Outlines
public static void initOutlines() {
outlinesShader = new Shader("outline.vert", "outline.frag");
outlinesFramebuffer = new SimpleFramebuffer(mc.getWindow().getFramebufferWidth(), mc.getWindow().getFramebufferHeight(), false, false);
outlinesVertexConsumerProvider = new OutlineVertexConsumerProvider(mc.getBufferBuilders().getEntityVertexConsumers());
}
use of net.minecraft.client.render.OutlineVertexConsumerProvider in project Hypnotic-Client by Hypnotic-Development.
the class OutlineVertexConsumers method outlineOnlyProvider.
public static VertexConsumerProvider outlineOnlyProvider(float r, float g, float b, float a) {
OutlineVertexConsumerProvider vertexProvider = MinecraftClient.getInstance().getBufferBuilders().getOutlineVertexConsumers();
vertexProvider.setColor((int) (r * 255), (int) (g * 255), (int) (b * 255), (int) (a * 255));
return new Override(vertexProvider);
}
use of net.minecraft.client.render.OutlineVertexConsumerProvider in project KiwiClient by TangyKiwi.
the class OutlineVertexConsumers method outlineOnlyConsumer.
public static VertexConsumer outlineOnlyConsumer(float r, float g, float b, float a) {
OutlineVertexConsumerProvider vertexProvider = MinecraftClient.getInstance().getBufferBuilders().getOutlineVertexConsumers();
vertexProvider.setColor((int) (r * 255), (int) (g * 255), (int) (b * 255), (int) (a * 255));
return vertexProvider.getBuffer(RenderLayer.getOutline(nonExistentId));
}
use of net.minecraft.client.render.OutlineVertexConsumerProvider in project meteor-client by MeteorDevelopment.
the class EntityShaders method initOverlay.
// Overlay
public static void initOverlay(String shaderName) {
overlayShader = new Shader("outline.vert", shaderName + ".frag");
overlayFramebuffer = new SimpleFramebuffer(mc.getWindow().getFramebufferWidth(), mc.getWindow().getFramebufferHeight(), false, false);
overlayVertexConsumerProvider = new OutlineVertexConsumerProvider(mc.getBufferBuilders().getEntityVertexConsumers());
timer = 0;
}
Aggregations