ConnectedTexturesMod

ConnectedTexturesMod

110M Downloads

Shaders for baked blocks

Drullkus opened this issue ยท 0 comments

commented

Being able to put shaders onto a block face on a baked model would be pretty awesome. I have several useful applications for this. And then we could have a fallback texture (just like proxy) if we can detect the shader couldn't work due to incompatible hardware or something.

Would it be possible to point at shaders in the mcmeta files? Perhaps in the extras compound? Like this:

{
    "ctm": {
        "ctm_version": 1,
        "type": "NORMAL",
        "extras": {
            "shaders": {
                "__comment": "fragment, geometry, and vertex files are referred in the /shaders/ folder automatically.",
                "fragment": "ender.fragment",
                "vertex": "ender.vertex",
                "__comment2": "fallback for mcmeta reference if shader doesn't work. Purely optional and",
                "__comment3": "will continue using this mcmeta itself if it doesn't exist.",
                "__comment4": "reasons for shader failing can include older hardware/drivers, especially Macs",
                "fallback": "blocks/anvil"
            }
        }
    }
}