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
|
|
@ -1,7 +1,9 @@
|
|||
|
||||
// gaussian_blur adapted from https://godotshaders.com/shader/customizable-gausian-blur/
|
||||
// original code by https://godotshaders.com/author/djbob-gaming-yt/
|
||||
// maximum radius is 64
|
||||
/*
|
||||
gaussian_blur adapted from https://godotshaders.com/shader/customizable-gausian-blur/
|
||||
original code by https://godotshaders.com/author/djbob-gaming-yt/
|
||||
maximum radius is 64
|
||||
*/
|
||||
vec4 gaussian_blur(sampler2D texture, vec2 uv, int radius, float sigma) {
|
||||
vec2 resolution = 1.0 / vec2(textureSize(texture, 0));
|
||||
// calculate kernel
|
||||
|
|
|
|||
Reference in a new issue