use of net.minecraft.client.render.OutlineVertexConsumerProvider in project meteor-client by MeteorDevelopment.
the class EntityShaders method initOutlines.
// Outlines
@Init(stage = InitStage.Pre)
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 Client by MatHax.
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;
}
use of net.minecraft.client.render.OutlineVertexConsumerProvider in project Hypnotic-Client by Hypnotic-Development.
the class ESP method getOutline.
private VertexConsumerProvider getOutline(BufferBuilderStorage buffers, float r, float g, float b) {
OutlineVertexConsumerProvider ovsp = buffers.getOutlineVertexConsumers();
ovsp.setColor((int) (r * 255), (int) (g * 255), (int) (b * 255), 255);
return ovsp;
}
use of net.minecraft.client.render.OutlineVertexConsumerProvider in project Hypnotic-Client by Hypnotic-Development.
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));
}
Aggregations