It would be nice if people could make colour translations using the image's own palette. Some advantages of this approach are:
- Mods that support multiple IWADs, and contain new player sprites wouldn't have to have different versions of the player sprites for each IWAD.
- Some modders could save space by using translations to create new textures from their existing textures.
- Doom 64-style palette animations
Code: Select all
If an image contains its own palette
If the translation is flagged to use image's palette rather than the PLAYPAL
Perform the translation using the image's colours
Otherwise
Perform the translation using the PLAYPAL
If the renderer does not support true-colour rendering
Convert the translated image to the PLAYPAL
Otherwise
Leave the translated image as-is