Hi.I am developing a 2D strategy game like AoE 2.I need to change player color on sprites.How can i do that?
Thanks.
Hi.I am developing a 2D strategy game like AoE 2.I need to change player color on sprites.How can i do that?
Thanks.
Use 8-bit alpha maks which define the color changing regions. In the default version of the sprite, color the changing areas as white. In the pixel shader, modulate the sprite texel with the desired unit color and then lerp between the original sprite color and the modulated sprite color according to the alpha map.
Cheers!