use of org.bleachhack.util.shader.ColorVertexConsumerProvider in project BleachHack by BleachDrinker420.
the class BlockHighlight method onEnable.
@Override
public void onEnable(boolean inWorld) {
super.onEnable(inWorld);
try {
shader = new ShaderEffectWrapper(new ShaderEffect(mc.getTextureManager(), mc.getResourceManager(), mc.getFramebuffer(), new Identifier("bleachhack", "shaders/post/entity_outline.json")));
colorVertexer = new ColorVertexConsumerProvider(shader.getFramebuffer("main"), BleachCoreShaders::getColorOverlayShader);
} catch (JsonSyntaxException | IOException e) {
e.printStackTrace();
setEnabled(false);
}
}
Aggregations