- Home /
The question is answered, right answer was accepted
Tinted alpha
I have no idea how to code shaders, and so far that seems to be the only way to do this... I have a texture for a tram model, and it has an alpha colour for the windows. However by using alpha cutout shader, it makes it completely transparent. The alpha part of the texture for the tram is slightly grey, however that doesn't seem to affect how it renders in unity, it still appears completely alpha. I need to tint the windows slightly grey, however I cant seem to find how to do that in unity. Any help is appreciated. :)
?? Cutout shader does what it says. It uses alpha to either keep or to completely cut-out part of the texture. Good for things like leaves, with curvy, but completely solid edges.
Have you tried a regular alpha shader (often simply called Transparent)?
yea but the effect is weird..... I have added a screenshot of what happens with just regular transparency:
whereas I need the texture to be solid opacity except where the windows are, similar to how cutout works but with options for "how transparent" and colour of the transparency....
Answer by joshua-lyness · Jun 27, 2015 at 10:21 PM
alright after a bit of research I found out that you cant do both opacity controlled by a texture and alpha with its own colour value on the same material, so I just separated the glass from the car. Thx for your help anyway ;)
Follow this Question
Related Questions
[Unity5]how to change alpha by using shader. 1 Answer
Changing material color´s alpha in self iluminated shader 1 Answer
Boat wake/foam 0 Answers
apply transparent png, material color shine through 3 Answers
Is there a way to set an alpha color? 2 Answers