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,6 +1,8 @@
|
|||
|
||||
// Load in a texture from a sampler2D with an offset and scale
|
||||
// See examples/place_texture.gdshader
|
||||
/*
|
||||
Load in a texture from a sampler2D with an offset and scale
|
||||
See examples/place_texture.gdshader
|
||||
*/
|
||||
vec4 place_texture(sampler2D sampler, vec2 uv, vec2 texture_pixel_size, vec2 offset, vec2 scale) {
|
||||
vec2 texture_size = vec2(textureSize(sampler, 0));
|
||||
// position of current pixel; sample color c
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue