I am working on an interface with Lemur, and I need to gray out an icon when it is in a locked or disabled state.
I am using a
Container with a
QuadBackgroundComponent to display an icon’s texture. I also am using the
.setColor(ColorRGBA.Red()); method to display the icon as red when it is in a locked state. But I also need to display it in a disabled state too, which would best be represented by desaturating the icon and graying it out.
I know that I can manually make a grayed out copy of each icon’s texture that is desaturated using an external image editor, but doing it with code to alter a single texture would be optimal.
Is there already a way to do this with Lemur?
If not, then I would be curious to know what shader the
QuadBackgroundComponent uses so I could add support for desaturating based on a float value
Edit: for reference as to what I am trying to do: I am trying to make a talent/skill tree, similar to this one from world of warcraft that has talent icons grayed out unless the player has points in them.