← All resources

Swapping Colours (Cyanilux)

Auto-discovered

Blog Intermediate

Cyanilux

Visit resource ↗

Description

Swapping Colours is a February 2023 Cyanilux post on recolouring textures and procedural inputs in Unity Shader Graph for 3D, sprites, UI, or signed-distance shapes.

Sections cover Tint, Lerp, channel-packed greys, mask textures, Replace Color, Blend modes, gradient ramps as textures, and palette index lookups. Examples cite RTS team colours, foliage variants, VFX ramps, and pixel-art palettes, with tradeoffs on memory, mobile dependent reads, and HSV versus linear lerps.

Intermediate readers should know Shader Graph properties and transparency; Node Library HLSL links and cross-references to gradient and layering posts are included.

Kenney sprite screenshots follow the usual free Cyanilux breakdown layout on cyanilux.com.

Useful for runtime palette swaps without duplicating textures; commonly linked among Unity shader practitioners.