Search in sources :

Example 1 with OutlineVertexConsumerProvider

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);
}
Also used : OutlineVertexConsumerProvider(net.minecraft.client.render.OutlineVertexConsumerProvider)

Example 2 with OutlineVertexConsumerProvider

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());
}
Also used : OutlineVertexConsumerProvider(net.minecraft.client.render.OutlineVertexConsumerProvider) Shader(mathax.client.renderer.Shader) SimpleFramebuffer(net.minecraft.client.gl.SimpleFramebuffer)

Example 3 with OutlineVertexConsumerProvider

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);
}
Also used : OutlineVertexConsumerProvider(net.minecraft.client.render.OutlineVertexConsumerProvider)

Example 4 with OutlineVertexConsumerProvider

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));
}
Also used : OutlineVertexConsumerProvider(net.minecraft.client.render.OutlineVertexConsumerProvider)

Example 5 with OutlineVertexConsumerProvider

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;
}
Also used : OutlineVertexConsumerProvider(net.minecraft.client.render.OutlineVertexConsumerProvider) Shader(meteordevelopment.meteorclient.renderer.Shader) SimpleFramebuffer(net.minecraft.client.gl.SimpleFramebuffer)

Aggregations

OutlineVertexConsumerProvider (net.minecraft.client.render.OutlineVertexConsumerProvider)9 SimpleFramebuffer (net.minecraft.client.gl.SimpleFramebuffer)4 Shader (mathax.client.renderer.Shader)2 Shader (meteordevelopment.meteorclient.renderer.Shader)2 Init (meteordevelopment.meteorclient.utils.Init)1