Category: shaders
-
Pixelization Shader
Pixelization shader can add a pixel art touch to your game, however it is not pixel art since there are many other things to consider when creating pixelart which pixelization shaders don’t’ do. In a nutshell It is a very simple shader. You need to round off the UVs in order to achieve the blocky…
-
Sea Sickness Shader (Underwater View Shader)
This is one of the simple screen space post processing shaders that you can apply to your game if you want to simulate sea sickness feeling or the feeling of being under the water. If you reduce the strength of the motion, you can apply it to our simple scene to simulate some motion instead…
-
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:
-
Film Grain Shader
White noise shader on screen for Godot 4 ( and GLSL). Film grain is one of the final effects that you apply to add a bit of stylized look or realism to your game. The slight imperfections it adds makes scene look more natural. How it works? Film grain is post processing screen space shader;…