Show hidden "message-icon" when specific light color hits mesh surface
In short I want a material that will be on a wall that has a text that doesn't appear until you hit the wall with a specific light. For example your character can hold a green,a red and a yellow flashlight and only when you aim at the wall with the red one the text will appear otherwise nothing shows up. Is that possible to achieve and if so how easy is it to make that material?
asked Jan 08 '16 at 08:38 AM in Everything Else
I'd make it simpler and have all the materials that need such functionality use Material Parameter Collection in which you have an int 'current flashlight'. Set that value in the MPC through code or blueprint when changing the flashlight.
Then in the material, normally react to light (make the text on normalmap or spec) but check for that int whether it matches what you need. Use lerp or switch, both would work. MPC is quite well documented, you should be able to get it up and running quickly.
Follow this question
Once you sign in you will be able to subscribe for any updates here