r/unity_tutorials • u/AEyolo • Oct 27 '19
Bastion Effect, Progressive Level Visibility in Unity using Shader Graph (Tutorial in Comments)
3
1
u/EchoGameWorks Oct 27 '19
Really great tutorial - clear and with great results. There were a bunch of little nuggets of awesome techniques that can be utilized outside of this effect, too.
It'd be great to see a part 2 that incorporates a way to leave the tiles once you move away in the opposite direction (like Bastion does) - if that's even possible to capture in a shader. I'd think it is with some conditionals inside the shader or some code in your C# script.
Thanks for posting this!
1
u/AEyolo Oct 28 '19
Reading awesome comments like yours never gets old. I got the idea later which is in the C# code have a variable to store the last position and compare if the new position is larger then set it to the new one and update the material, if not do nothing
1
u/siriuslyred Oct 28 '19
That looks awesome. So good I'm trying to think of a way to put it into my game even though it had no use for such an effect :D look forward to what you make next!
2
5
u/AEyolo Oct 27 '19
Tutorial Link