Fragmented

Create image filters by writing shaders.
## Supported Platforms
- Linux
You can find the latest releases [here](https://github.com/ChaoticByte/Fragmented/releases/latest).
## Usage
The repo includes examples. You can use them as a starting-point to write your own filters.
Just load an image using `//!load`, edit the shader code and hit `F5` to see the changes.
### Load TEXTURE using the `//!load` directive
```glsl
//!load
```
The image file will be read and available as the `TEXTURE` variable.
#### Load additional images
```glsl
//!load+
uniform sampler2D ;
```
Have a look at the `place_texture.gdshader` example.
## Shaderlib
This repo comes with a (still small) shader library including pre-written functions and more.
Have a look at the `shaderlib` folder.
Here is an example:
```glsl
shader_type canvas_item;
#include "res://shaderlib/hsv.gdshaderinc"
//!load ./swamp.jpg
void fragment() {
COLOR = hsv_offset(COLOR, 0.32, 0.2, 0.0);
}
```