Implement oklab, oklch color space conversion functions, add example, restructure comments in the shaderlib, implements #37
This commit is contained in:
parent
35959290d3
commit
1a21589fc1
8 changed files with 127 additions and 34 deletions
|
@ -137,7 +137,7 @@ var shaderlib_regex = {
|
|||
"blur": RegEx.create_from_string(r'\s*\#include\s+\"res\:\/\/shaderlib\/blur\.gdshaderinc\"'),
|
||||
}
|
||||
const shaderlib_functions = {
|
||||
"colorspaces": ["rgb2hsv", "hsv2rgb"],
|
||||
"colorspaces": ["rgb2hsv", "hsv2rgb", "oklab2rgb", "rgb2oklab", "oklab2oklch", "oklch2oklab"],
|
||||
"transform": ["place_texture"],
|
||||
"transparency": ["alpha_blend"],
|
||||
"effects": ["pixelate"],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue