{
    "targets": [
        { "name": "controller", "width": 2, "height": 3 },
        { "name": "controllerSwap", "width": 2, "height": 3 },
        "water",
        "translucent",
        "itemEntity",
        "particles",
        "clouds",
        "weather",
        "final",
        "swap",
        "swap1"
    ],
    "passes": [
        {
            "name": "toggler/copy",
            "intarget": "controller",
            "outtarget": "controllerSwap"
        },
        {
            "name": "toggler/findcolor",
            "intarget": "controllerSwap",
            "outtarget": "controller",
            "auxtargets": [
                {
                    "name": "ParticleSampler",
                    "id": "particles"
                }
            ]
        },
        {
            "name": "toggler/remove",
            "intarget": "particles",
            "outtarget": "final"
        },
        {
            "name": "blit",
            "intarget": "final",
            "outtarget": "particles"
        },
        {
            "name": "transparency",
            "intarget": "minecraft:main",
            "outtarget": "final",
            "auxtargets": [
                {
                    "name": "DiffuseDepthSampler",
                    "id": "minecraft:main:depth"
                },
                {
                    "name": "TranslucentSampler",
                    "id": "translucent"
                },
                {
                    "name": "TranslucentDepthSampler",
                    "id": "translucent:depth"
                },
                {
                    "name": "ItemEntitySampler",
                    "id": "itemEntity"
                },
                {
                    "name": "ItemEntityDepthSampler",
                    "id": "itemEntity:depth"
                },
                {
                    "name": "ParticlesSampler",
                    "id": "particles"
                },
                {
                    "name": "ParticlesDepthSampler",
                    "id": "particles:depth"
                },
                {
                    "name": "CloudsSampler",
                    "id": "clouds"
                },
                {
                    "name": "CloudsDepthSampler",
                    "id": "clouds:depth"
                },
                {
                    "name": "WeatherSampler",
                    "id": "weather"
                },
                {
                    "name": "WeatherDepthSampler",
                    "id": "weather:depth"
                }
            ]
        },
        {
            "name": "debug/draw_text",
            "intarget": "final",
            "auxtargets": [
                {
                    "name": "FontSampler",
                    "id": "shader_font",
                    "width":1,
                    "height":1,
                    "bilinear":false
                },
                {
                    "name": "NumberSampler",
                    "id":"controller"
                }
            ],
            "outtarget": "swap"
        },
        {
            "name": "toggler/shader",
            "intarget": "swap",
            "outtarget": "final",
            "auxtargets": [
                {"name": "ControlSampler","id": "controller"},
                {"name": "DiffuseDepthSampler","id": "minecraft:main:depth"},
                {"name": "FlashlightSampler","id": "flashlight","width":  428,"height": 1205,"bilinear": false}
            ]
        },
        {
            "name": "blit",
            "intarget": "final",
            "outtarget": "minecraft:main"
        }
    ]
}
