- Home /
Alpha-based Color Mask
Hi guys
is there any shader, that gives me the opportunity of coloring all parts of the texture which are transparent with a specific color? I want to add TeamColors to my fighter and i dont want to add 12 textures for each team.
thx ahead
Answer by lenny.myr · Sep 26, 2012 at 10:19 PM
bump :(
Is there really no shader, that solves my problem? Maybe there is any tutorial with which's help I can make my own shader.
Answer by Itinerant · Sep 26, 2012 at 10:49 PM
Super simple solution if you're only using one texture right now :D You don't need a new shader or anything. Here's what you can do:
Go to your object in the inspector, change the material size from 1 to 2. Make two materials: One with transparency based on your alpha channel (Transparent/Diffuse, for example), and the other can be anything else (Diffuse, colored whatever). Then place them in the two slots and you're done!
See this for more ways of doing it: Multiple Textures
Your answer
Follow this Question
Related Questions
How would I add an alpha mask to this shader? 1 Answer
Is there a way to set an alpha color? 2 Answers
shader problem 0 Answers
Masking shader with alpha Color 1 Answer
Rewrite simple alphamask fixed function shader to surface or cg shader 2 Answers