Tag: ocean shader
-
Making Boat Physics in Godot
My objective was to make a ship that is floating on water; walkable on deck; and its motion is based on dynamic water waves. Yet it should be cheap to compute, not taking too much frame-rate. Breakdown Full Code Thank you for reading <3
-
3D Refraction Shader
My focus is not on realistic refraction, but rather on cheaply computed distortion of screen texture on objects that looks like refraction as in the image. It looks good if applied on ocean shaders, glasses or crystals in games. Cheap Refraction The simulation is done by simply distorting screen UVs using the normal map. And…
-
3D Ocean Shader Using Gerstner Waves
Sine wave displaces vertices up and down. Gerstner wave, in addition to this sine-based y-axis displacement, also does horizontal-axes displacement of vertices using same sine-wave. Imagine a surface made up of many points. Suppose we apply sine function like this: