Part 2: Shaders in Godot Game Engine
Hi Fellow GameDevs,
This is part 2 of a 2 part series on how to create a 2D Bubble shader in Godot 3.x.
In this video I'll show how to use the assets created in part 1, with a Godot 2D shader to create a faked refraction bubble magnification effect.
We'll learn:
Sprite Node creation in Godot
How to use a basic Fragment shader
How to utilize a Normal map within the fragment shader
How to use a basic Vertex shader
Common confusing error cases
Shader parameters changed in the shader script don't always display any results! This is due to the UI saving off the uniform shader params, which need to be reset or changed within th UI.
Note: I made a few mistakes that I left in the video to show how I corrected them, in hopes that you might learn from them. Sorry for the slightly longer video due to this. :)
Tools used:
Godot: 3.1.1
Text version of this tutorial (with all download links):
https://timecubepuzzle.blogspot.com/2...
Github code:
https://github.com/Razzlegames/GodotB...
References / Credits:
GDQuest - • Godot Shader Tutorial (1): Intro to Shader...
Inpsiration for the bubble wave vertex shader
My current Hardware setup: https://timecubepuzzle.blogspot.com/p...