This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #version 430 | |
| uniform float opacity; | |
| uniform bool invert_color; | |
| uniform sampler2D tex; | |
| in vec2 texcoord; // texture coordinate of the fragment | |
| const float pow_cbrt = 1./3; | |
| vec3 rgb2oklab(vec3 rgb) { | |
| vec3 srgb = rgb / 12.92; | |
| for (int i = 0; i < 3; i++) { |
OlderNewer