Search in sources :

Example 1 with ShaderEffectWrapper

use of com.tangykiwi.kiwiclient.util.shader.ShaderEffectWrapper in project KiwiClient by TangyKiwi.

the class ESP method onEnable.

@Override
public void onEnable() {
    super.onEnable();
    try {
        shader = new ShaderEffectWrapper(new ShaderEffect(mc.getTextureManager(), mc.getResourceManager(), mc.getFramebuffer(), new Identifier("kiwiclient", "shaders/post/entity_outline.json")));
        colorVertexer = new ColorVertexConsumerProvider(shader.getFramebuffer("main"), ShaderCore::getColorOverlayShader);
    } catch (JsonSyntaxException | IOException e) {
        e.printStackTrace();
        super.onDisable();
    }
}
Also used : Identifier(net.minecraft.util.Identifier) JsonSyntaxException(com.google.gson.JsonSyntaxException) ColorVertexConsumerProvider(com.tangykiwi.kiwiclient.util.shader.ColorVertexConsumerProvider) IOException(java.io.IOException) ShaderEffectWrapper(com.tangykiwi.kiwiclient.util.shader.ShaderEffectWrapper) ShaderEffect(net.minecraft.client.gl.ShaderEffect)

Aggregations

JsonSyntaxException (com.google.gson.JsonSyntaxException)1 ColorVertexConsumerProvider (com.tangykiwi.kiwiclient.util.shader.ColorVertexConsumerProvider)1 ShaderEffectWrapper (com.tangykiwi.kiwiclient.util.shader.ShaderEffectWrapper)1 IOException (java.io.IOException)1 ShaderEffect (net.minecraft.client.gl.ShaderEffect)1 Identifier (net.minecraft.util.Identifier)1