r/unity_tutorials • • Oct 27 '19

Bastion Effect, Progressive Level Visibility in Unity using Shader Graph (Tutorial in Comments)

149 Upvotes

8 comments sorted by

3

u/unitytechnologies Oct 28 '19

Excellent work and excellent tutorial

1

u/AEyolo Oct 28 '19

Happy that you liked it

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

u/AEyolo Oct 28 '19

Yea if you check some game play videos for the game Bastion it looks amazing