I’m creating icon buttons in my Babylon project and I’m thrilled that I can use SVG images instead of a sprite! I’m utilizing Google’s Material Design icons in SVG format. Is there any way to programatically change the fill color of the SVG icon in Babylon?
In HTML/CSS I would simply adjust the fill color using CSS to accomplish this. This is useful because I don’t have to maintain a separate file for each possible button state.
Here is a playground example showcasing how I’m currently building the button.