Implement oklab, oklch color space conversion functions, add example, restructure comments in the shaderlib, implements #37

This commit is contained in:
ChaoticByte 2025-01-17 16:50:34 +01:00
parent 35959290d3
commit 1a21589fc1
No known key found for this signature in database
8 changed files with 127 additions and 34 deletions

View file

@ -0,0 +1,5 @@
// inefficient cuberoot function
float cbrt(float x) {
return pow(x, 1.0/3.0);
}