Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void flip(Random random, EntityPlayer player) {
- setCurrentShader(new ResourceLocation("minecraft:shaders/post/flip.json"), null, player);
- }
- @Override
- public void Phosphor(Random random, EntityPlayer player) {
- setCurrentShader(new ResourceLocation("minecraft:shaders/post/phosphor.json"), null, player);
- }
- @Override
- public void noCurrentShader(Random random, EntityPlayer player){
- Minecraft mc = Minecraft.getMinecraft();
- mc.entityRenderer.theShaderGroup = null;
- mc.entityRenderer.theShaderGroup.createBindFramebuffers(mc.displayWidth, mc.displayHeight);
- }
- @Override
- public void setCurrentShader(ResourceLocation resourcelocation,World world, EntityPlayer player){
- Minecraft mc = Minecraft.getMinecraft();
- try{
- mc.entityRenderer.theShaderGroup = new ShaderGroup(mc.getTextureManager(), mc.getResourceManager(), mc.getFramebuffer(), resourcelocation);
- }catch(JsonException e){
- e.printStackTrace();
- }
- mc.entityRenderer.theShaderGroup.createBindFramebuffers(mc.displayWidth, mc.displayHeight);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment