GUI: Set material constants, or multi-texturing?

Just regarding this discussion here:

For this “palette swapping” shader to work on GUI nodes, we need either;

  • Support for multiple textures in GUI materials, or
  • Support for setting material constants via gui.set()

Which of these is more likely to be in Defold sooner?

I understand if it may be seen as low priority - I can work around it by implementing part of my GUI in the game’s camera instead, using sprites, for the part that needs palette swapping.

We would like to spend as little time as possible working on the gui. I suggest that you focus on a work around using sprites.

No worries, thanks for the update - yeah I came up with a better way, just pre-exported one icon for each character in the various 8 colour palettes, so I can still use the GUI. I’ll try and design around scenarios that require palette shaders in the GUI.

1 Like