Iris Shaders

Iris Shaders

36M Downloads

shaders.properties is not preprocessed with the values of config options

coderbot16 opened this issue ยท 2 comments

commented

This can be observed as galaxies not working when enabled manually on Complementary 4.3:

    #ifdef GALAXIES
        texture.gbuffers.gaux4=tex/galaxy.png
    #endif

Apparently, the values of every valid config option and every standard macro value are used when processing shaders.properties. Currently, Iris only uses MC_VERSION.

commented

Fixed in the config branch, where this is relevant.

commented

but seems like block.properties still not preprocessed. such as

block.xx = some_block \
             #ifdef SOME_OPTION
                 some_extra_block \
             #endif
             another_block

will got a error Non [a-z0-9/._-] character in path of location: minecraft:#ifdef