Updating specific materials opacity
I am creating a grid based game, I am trying to make it so only the materials directly surrounding the player are visible and fade out with distance from the player actors current location. So the gird the player currently occupies is fully visible, the ones next to him are 75% visible, the next are 50% visible and so on.
I have had mild success with material parameters and I have successfully gotten materials to update dynamically, but they all update with the same value, is there a way I can dynamically change each materials opacity based on an actor location?
Any help would be greatly appreciated
asked Feb 17 '16 at 02:18 PM in Blueprint Scripting
Basically you need to use a sphere mask or box mask 3D and a collection parameter in your materials to multiply the opacity, and then set that parameter(vector) with player's location. Check out this video for more info: https://www.youtube.com/watch?v=GXbE0IqbA7w
Follow this question
Once you sign in you will be able to subscribe for any updates here