From 249dad113997b20b07e60fd96caa64c3250d198e Mon Sep 17 00:00:00 2001 From: ChaoticByte Date: Sun, 9 Jun 2024 16:44:28 +0200 Subject: [PATCH] Added more information to the README --- README.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/README.md b/README.md index c0694d8..a7dcfea 100644 --- a/README.md +++ b/README.md @@ -4,3 +4,36 @@ ![screenshot](./screenshot.png)

Create image filters by writing shaders.

+ +## Supported Platforms + +- Linux [tested] +- Windows + +You can find the latest releases [here](https://github.com/ChaoticByte/GlitchApp/releases/latest). + +## Usage + +The application includes presets. You can use them as a starting-point to write your own filters. +Just load an image, apply a preset, edit the code and hit `F5` to see the changes. + +### Load additional images using the `//!load` directive + +```glsl +//!load +uniform sampler2D ; +``` + +With this you can load additional images into your shader. +Have a look at the `Mix` preset: + +```glsl +shader_type canvas_item; + +//!load img2 ./icon.png +uniform sampler2D img2: repeat_enable, filter_nearest; + +void fragment() { + COLOR = mix(COLOR, texture(img2, UV), .5); +} +```