Create and apply image filters using Godot's GLSL dialect.
Find a file
2024-12-21 17:08:26 +01:00
dist Add export presets for Linux and Windows 2024-06-05 20:50:48 +02:00
examples Removed presets, load all images via load directives (implements #9), removed obsolete code, added some improvements 2024-12-19 18:52:47 +01:00
scenes Place the viewer and editor in separate windows 2024-12-21 17:08:26 +01:00
src Place the viewer and editor in separate windows 2024-12-21 17:08:26 +01:00
.gitattributes Add project files 2024-06-04 18:31:04 +02:00
.gitignore fix: Remember the location a shader was loaded from & improve functionality 2024-06-10 15:51:02 +02:00
export_presets.cfg Rename to Fragmented 2024-12-19 16:48:32 +01:00
icon.png Added project icon 2024-06-09 13:23:58 +02:00
icon.png.import Added project icon 2024-06-09 13:23:58 +02:00
LICENSE Add project files 2024-06-04 18:31:04 +02:00
project.godot Place the viewer and editor in separate windows 2024-12-21 17:08:26 +01:00
README.md Update the example in the README 2024-12-19 19:03:00 +01:00
screenshot.png Added a new screenshot 2024-12-19 19:01:49 +01:00

Fragmented

screenshot

Create image filters by writing shaders.

Supported Platforms

  • Linux

You can find the latest releases here.

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

//!load <filepath>

The image file will be read and available as the TEXTURE variable.

Load additional images

//!load <name> <filepath>
uniform sampler2D <name>;

Have a look at the mix.gdshader example:

shader_type canvas_item;

//!load ./swamp.jpg

//!load+ img2 ./overlay.jpg
uniform sampler2D img2: repeat_enable, filter_nearest;

void fragment() {
	COLOR = mix(COLOR, texture(img2, UV), .2);
}