+1 vote

I'm making a 3D game and I'm going to use a single image texture containing a color palette for all the objects in my game.
I want to use a single color from that palette as sort of a "key color" that could be modulated, without affecting the other colors from the palette.
For example, I want to have a character with brown boots, blue pants and a shirt in that "key color" that can be modulated through code to any color I want it to be.
How can I achieve this?

Godot version 3.3.3
in Engine by (13 points)

Having a single texture for a mesh, and changing the colors in it, world be difficult. Usually, the materials for the mesh would be manipulated. Properties like "Albedo" would be accessed and changed separately at runtime would be much easier to implement.

Yeah, doing it with different materials would be easier, but I really wanted to stick to a single texture if possible.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.