- Home /
Can you combine a opacity map with a fade-in?
Hey folks, quick question if anyone knows.
I would like an object with its own opacity map to fade in. Is there an overarching Alpha channel that will always be used for an object regardless of opacity maps? Considering Unity removes the options to adjust opacity when you put in your own opacity map, I think I already have my answer (and thus have to look for a different solution). Figured I would ask anyway.
Thanks!
I'm not actually sure how to do this but I would look at altering the levels of the opacity map to make it darker or tinting it from white to black. Whether or not there is a built in way to do this I don't know and it may require a custom shader. Alternatively using an animated texture which lowers the levels of the map and playing that backwards or forwards would achieve the effect of fading in or out but obviously would be more expensive to use and increase the file size.
What shader are you using. Using a custom shader would probably be the best approach in this case, although I think you can do it with the standard shader.
At the moment a standard unity 5 shader, yeah. Also, the $$anonymous$$m I'm working with has just started out with unity, so I don't already want to ask them if they can program a custom shader. Thanks for the input though both of you. I'll figure out something else.
I'm happy to write you a standard-based shader with this functionality, if the normal one doesn't work.
Your answer
Follow this Question
Related Questions
Opacity setting from code is not working 1 Answer
Why can't I change the alpha of my controls over time? 2 Answers
alpha value not changing(gradual decrease) during runtime 1 Answer
How to make blinding and flashing effects with lerp? 2 Answers
How would you create a transition between different maps or rooms like in Luigi's Mansion? 0 Answers