[sharing] perceptual colorspace shaders


    Jun 12 2012 | 8:35 pm
    I've finally gotten around to uploading some shaders that I developed to translate from RGB to various perceptual colorspaces. I needed these to build a palette snooping tool for arbitrary images, which may be something that others would want to do.
    The shaders allow for the following conversions:
    RGB –> HSL
    RGB –> HSV
    HSL –> RGB
    HSV –> RGB
    RGB –> CIE-XYZ
    CIE-XYZ –> RGB
    CIE-XYZ –> CIE-L*ab
    CIE-XYZ –> CIE-L*uv
    CIE-XYZ –> HLAB
    CIE-XYZ –> Yxy
    CIE-L*ab –> CIE-XYZ
    CIE-L*uv –> CIE-XYZ
    HLAB –> CIE-XYZ
    Yxy –> CIE-XYZ
    CIE-L*ab –> CIE-L*CH
    CIE-L*CH –> CIE-L*ab
    Feedback welcome!