use of net.minecraft.client.gl.SimpleFramebuffer 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.gl.SimpleFramebuffer 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;
}
use of net.minecraft.client.gl.SimpleFramebuffer 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.gl.SimpleFramebuffer 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;
}
Aggregations