use of me.mcblueparrot.client.event.impl.PostProcessingEvent in project sol-client-glassmc by danterusdev.
the class MixinEntityRenderer method addShaders.
@Inject(method = "updateCameraAndRender(FJ)V", at = @At(value = "INVOKE", target = "Lv1_8_9/net/minecraft/client/shader" + "/Framebuffer;bindFramebuffer(Z)V", shift = At.Shift.BEFORE))
public void addShaders(float partialTicks, long nanoTime, CallbackInfo callback) {
for (ShaderGroup group : Client.INSTANCE.bus.post(new PostProcessingEvent(PostProcessingEvent.Type.RENDER)).groups) {
GlStateManager.matrixMode(5890);
GlStateManager.pushMatrix();
GlStateManager.loadIdentity();
group.loadShaderGroup(((AccessMinecraft) Minecraft.getMinecraft()).getTimerSC().renderPartialTicks);
GlStateManager.popMatrix();
}
}
use of me.mcblueparrot.client.event.impl.PostProcessingEvent in project Client by Sol-Client.
the class MixinEntityRenderer method addShaders.
@Inject(method = "updateCameraAndRender", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/shader" + "/Framebuffer;bindFramebuffer(Z)V", shift = At.Shift.BEFORE))
public void addShaders(float partialTicks, long nanoTime, CallbackInfo callback) {
for (ShaderGroup group : Client.INSTANCE.bus.post(new PostProcessingEvent(PostProcessingEvent.Type.RENDER)).groups) {
GlStateManager.matrixMode(5890);
GlStateManager.pushMatrix();
GlStateManager.loadIdentity();
group.loadShaderGroup(AccessMinecraft.getInstance().getTimerSC().renderPartialTicks);
GlStateManager.popMatrix();
}
}
Aggregations