Art Director Sofie here to tell you about one of the systems we made that allows us to easily recolour ships and other assets in the game without having to make a new variant of a texture map each time. Not only would this be an inefficient way for the team to handle visuals, but importing color variants of texture maps would also eat up storage space. No, we needed a smarter approach!

Therefore we made a custom shader we call HSV Offset Shader and a database asset the system picks a random offset set from. The values in the database are defined in the HSV colour space - hue, saturation, and value - to make it easier to recolour already existing assets.
This is how it works:
The shader grabs the colour from the base map
The colour gets converted to the HSV colour space
An offset to the colour is then applied based on the Colour Shift Map
The colour gets converted back to the RGB colour space
As shown here, Red in the Colour Shift Map is shifted by HSV Offset 0, Green by HSV Offset 1, etc.

The Colour Shift Map is basically a mask texture that maps each of the offsets into individual parts of the original texture, so for example the hull of a ship can be recoloured differently than the steering cabin.

As an artist this system is really useful and easy to apply. I can create a database for each culture in the game, controlling which colours a base map can be offset to, to make sure that the colours generated for, for example, Shaped Folk ships can only be variants of purple, green, and orange hues.

When I want to use the shader, I just add the HSV Offset Picker component to the game object, pick the color database I want to use for the offset operation, and add to the list what meshes of the game object should be affected by the operation.
Using HSV Offsets, I can make ships and other models a lot more varied without losing their wider faction identity, and make the world more visually interesting to explore as a player without compromising the performance of the game.
The possibilities with this system are many and only restricted by our own assessment of how many databases we want to handle.
Thanks for reading along.
Safe winds,
Sofie
