This file contains 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
#ifndef __LAB_COLORSPACE__ | |
#define __LAB_COLORSPACE__ | |
/* | |
* Conversion between RGB and LAB colorspace. | |
* Import from flowabs glsl program : https://code.google.com/p/flowabs/source/browse/glsl/?r=f36cbdcf7790a28d90f09e2cf89ec9a64911f138 | |
*/ | |
float3 rgb2xyz( float3 c ) { | |
float3 tmp; |