07-17-2015, 06:27 AM
game maker has always had terrible compatibility issues from version to version, the change so much in gml a lot with no reason whatsoever.
also a note, you're probably better off in a palette swapper passing in a group of vec3's as palette and determine the colour by the w component, which you can decompose and edit in pretty much any good image editing program.
it allows you the freedom of on the fly palette swapping,
back on topic, how many animations are you looking to use underwater? because you have a lot more freedom with textures than you'd think, adding a new set wouldn't be much of a cost short of HD sprites
also a note, you're probably better off in a palette swapper passing in a group of vec3's as palette and determine the colour by the w component, which you can decompose and edit in pretty much any good image editing program.
Code:
int paletteIndex = int(textureSample.w * PALETTE_COLOR_COUNT); //probably going 16 colors in the palette would work fine
vec3 paletteColor = uniformPalette[paletteIndex];
back on topic, how many animations are you looking to use underwater? because you have a lot more freedom with textures than you'd think, adding a new set wouldn't be much of a cost short of HD sprites