Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | YeeBoi |
Hi,
What can i do to get this Tilemap transition effect?
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | YeeBoi |
Hi,
What can i do to get this Tilemap transition effect?
Reply From: | Zylann |
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
Thank you! I will look the demo.
YeeBoi | 2018-06-12 18:24