Tag: Math
-
Simple sharpen shader using a kernel

This tutorial will show you how to create a sharpen effect using a kernel in a GLSL shader. By modifying the gaussian blur shader from the last tutorial and replacing the code with a sharpen kernel, you will be able to create a sharpen effect. Happy coding!
-
Simple gaussian blur shader using a kernel

This tutorial demonstrates creating a gaussian blur shader using a kernel and the GLSL shader language. The process involves creating a kernel, defining a sample distance, applying blur, and setting the pixel alpha. Images with different sample distances are displayed for comparison. Thank you for reading this helpful guide!
-
Creating a duotone gradient in a GLSL shader

This tutorial guides you through creating a duotone gradient in a GLSL shader. Steps include converting to greyscale, creating a gradient, overlaying colours, and setting the output alpha. Experiment with colours and gradients to customise your sprite.
-
Creating a duotone circle effect in a GLSL shader

This tutorial demonstrates creating a duotone circle effect in a GLSL shader using a sprite of a mountain. By following the outlined steps, you can achieve a visually appealing result. The process involves details such as aspect ratio correction, creating a circle, converting to greyscale, overlaying colours, and setting the alpha channel. Experiment with different…
