use of net.minecraft.client.render.WorldRenderer in project meteor-client by MeteorDevelopment.
the class EntityShaders method endRender.
public static void endRender() {
WorldRenderer worldRenderer = mc.worldRenderer;
WorldRendererAccessor wra = (WorldRendererAccessor) worldRenderer;
Framebuffer fbo = worldRenderer.getEntityOutlinesFramebuffer();
// Overlay
if (chams != null && chams.isShader()) {
wra.setEntityOutlinesFramebuffer(overlayFramebuffer);
overlayVertexConsumerProvider.draw();
wra.setEntityOutlinesFramebuffer(fbo);
mc.getFramebuffer().beginWrite(false);
GL.bindTexture(overlayFramebuffer.getColorAttachment());
overlayShader.bind();
overlayShader.set("u_Size", mc.getWindow().getFramebufferWidth(), mc.getWindow().getFramebufferHeight());
overlayShader.set("u_Texture", 0);
overlayShader.set("u_Time", timer++ / 20.0);
PostProcessRenderer.render();
}
// Outline
if (esp != null && esp.isShader())
renderOutlines(outlinesVertexConsumerProvider::draw, true, esp.outlineWidth.get(), esp.fillOpacity.get().floatValue(), esp.shapeMode.get());
}
use of net.minecraft.client.render.WorldRenderer in project Client by MatHax.
the class EntityShaders method endRender.
public static void endRender() {
WorldRenderer worldRenderer = mc.worldRenderer;
WorldRendererAccessor wra = (WorldRendererAccessor) worldRenderer;
Framebuffer fbo = worldRenderer.getEntityOutlinesFramebuffer();
// Overlay
if (chams != null && chams.isShader()) {
wra.setEntityOutlinesFramebuffer(overlayFramebuffer);
overlayVertexConsumerProvider.draw();
wra.setEntityOutlinesFramebuffer(fbo);
mc.getFramebuffer().beginWrite(false);
GL.bindTexture(overlayFramebuffer.getColorAttachment());
overlayShader.bind();
overlayShader.set("u_Size", mc.getWindow().getFramebufferWidth(), mc.getWindow().getFramebufferHeight());
overlayShader.set("u_Texture", 0);
overlayShader.set("u_Time", timer++ / 20.0);
PostProcessRenderer.render();
}
// Outline
if (esp != null && esp.isShader())
renderOutlines(outlinesVertexConsumerProvider::draw, true, esp.outlineWidth.get(), esp.fillOpacity.get().floatValue(), esp.shapeMode.get());
}
Aggregations