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

in Engine by (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

by (27,964 points)
selected by

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.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.