Can detail maps on fixed material be colorized?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Pewsplosions
:warning: Old Version Published before Godot 3 was released.

Hi all. I am new to Godot so forgive me if the answer is obvious. I’ve been looking at the fixed material for 3d objects. It is almost perfect I think, for what I need. I like how the diffuse has a color and a map. So I can load a grayscale map and colorize it with the diffuse color.

The detail map on the other hand is just a map. Is there an easy way to also colorize this map like the diffuse?

I’ve looked a little into custom shaders. If this is the way to go, is there an easy way to use the fixed material as a base?

I’ve also looked a little into GDScript. Maybe color replacing through a script. But I’m totally new to GDScript also…

So basically before I get too far down the rabbit hole, I thought I’d ask if this is already possible and if not, which direction should I go?

:bust_in_silhouette: Reply From: Pewsplosions

Thought I’d come back and share my experiences in case others come across this question. I all but disregarded the GDScript route. Seemed like too much of a hack and I still don’t know GDScript much at all.

I did not find an easy way to make the fixed material a base for a custom shader. But after messing around with the Material Shader Graph Editor, I came up with something that suits my needs. It isn’t perfect and could probably be improved but it is what I’m going with for now. The colorized portions of the maps need to be certain shades of grey to work and are usually not the exact color you’d expect so if you try this out, you may want to tweak it some.

In case any one is interested in reproducing it, this is the graph: