0 votes

Hi,
What can i do to get this Tilemap transition effect?
https://www.youtube.com/watch?v=BxUFhLuNYVY&feature=youtu.be&t=1m50s

asked Jun 12 in Engine by YeeBoi (15 points)

1 Answer

+1 vote
Best answer

This can be done using a fullscreen shader. You would make a fullscreen rectangle (with TextureRect for example) and add a shader on it which will read pixels previously drawn, and output them with an effect added to it.
To deform the screen, you need to apply an offset to the coordinates where you fetch the pixels previously drawn.
Then, you would toggle this node on and off as you want it applied or not.

Take a look at this demo project to see how fullscreen shaders work https://github.com/godotengine/godot-demo-projects/tree/master/2d/screen_space_shaders

answered Jun 12 by Zylann (13,491 points)
selected Jun 12 by YeeBoi

Thank you! I will look the demo.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.