Restructured shaderlib by moving functions and renaming files

This commit is contained in:
ChaoticByte 2025-01-24 22:16:45 +01:00
parent c70eaed0c4
commit 40374bd849
No known key found for this signature in database
10 changed files with 53 additions and 49 deletions

View file

@ -80,12 +80,15 @@ Here is an example:
```glsl
shader_type canvas_item;
#include "res://shaderlib/hsv.gdshaderinc"
#include "res://shaderlib/oklab.gdshaderinc"
//!load ./examples/images/swamp.jpg
//!load ./images/swamp.jpg
void fragment() {
COLOR = hsv_offset(COLOR, 0.32, 0.2, 0.0);
vec4 oklab = rgb2oklab(COLOR);
vec4 oklch = oklab2oklch(oklab);
oklch.z -= 2.0;
COLOR = oklab2rgb(oklch2oklab(oklch));
}
```