Skip to content

Commit

Permalink
✨ [ColorSpaces] Replaced HSLuv with Okhsl
Browse files Browse the repository at this point in the history
  • Loading branch information
JulesFouchy committed Oct 10, 2023
1 parent f9e49f2 commit e7eb113
Show file tree
Hide file tree
Showing 19 changed files with 354 additions and 354 deletions.
2 changes: 1 addition & 1 deletion Nodes/10 Image/Color HSL.clbnode
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ INPUT Hue 'Hue';
INPUT float 'Saturation'; /// Goes between 0 and 1.
INPUT float 'Lightness'; /// Goes between 0 and 1.

HSLuv main()
Okhsl main()
{
return vec3('Hue', 'Saturation', 'Lightness');
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ INPUT float 'Shift';
INPUT float 'S';
INPUT float 'L';

HSLuv main(HSLuv Image)
Okhsl main(Okhsl Image)
{
Image.x = fract(Image.x + 'Shift');
Image.y = Image.y * (-4. * 'S') * ('S' - 1.) + 2. * 'S' * ('S' - 0.5);
Expand Down
6 changes: 3 additions & 3 deletions src/Module_Nodes/generated/cpp_type_as_string_cases.inl
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ case PrimitiveType::LinearRGB_StraightA: return "LinearRGB_StraightA";
case PrimitiveType::sRGB: return "sRGB";
case PrimitiveType::sRGB_PremultipliedA: return "sRGB_PremultipliedA";
case PrimitiveType::sRGB_StraightA: return "sRGB_StraightA";
case PrimitiveType::HSLuv: return "HSLuv";
case PrimitiveType::HSLuv_PremultipliedA: return "HSLuv_PremultipliedA";
case PrimitiveType::HSLuv_StraightA: return "HSLuv_StraightA";
case PrimitiveType::Okhsl: return "Okhsl";
case PrimitiveType::Okhsl_PremultipliedA: return "Okhsl_PremultipliedA";
case PrimitiveType::Okhsl_StraightA: return "Okhsl_StraightA";
6 changes: 3 additions & 3 deletions src/Module_Nodes/generated/glsl_type_as_string_cases.inl
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ case PrimitiveType::LinearRGB_StraightA: return "/*LinearRGB_StraightA*/ vec4";
case PrimitiveType::sRGB: return "/*sRGB*/ vec3";
case PrimitiveType::sRGB_PremultipliedA: return "/*sRGB_PremultipliedA*/ vec4";
case PrimitiveType::sRGB_StraightA: return "/*sRGB_StraightA*/ vec4";
case PrimitiveType::HSLuv: return "/*HSLuv*/ vec3";
case PrimitiveType::HSLuv_PremultipliedA: return "/*HSLuv_PremultipliedA*/ vec4";
case PrimitiveType::HSLuv_StraightA: return "/*HSLuv_StraightA*/ vec4";
case PrimitiveType::Okhsl: return "/*Okhsl*/ vec3";
case PrimitiveType::Okhsl_PremultipliedA: return "/*Okhsl_PremultipliedA*/ vec4";
case PrimitiveType::Okhsl_StraightA: return "/*Okhsl_StraightA*/ vec4";
4 changes: 2 additions & 2 deletions src/Module_Nodes/generated/has_an_alpha_channel.inl
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ case PrimitiveType::LinearRGB_StraightA:
case PrimitiveType::LinearRGB_PremultipliedA:
case PrimitiveType::sRGB_StraightA:
case PrimitiveType::sRGB_PremultipliedA:
case PrimitiveType::HSLuv_StraightA:
case PrimitiveType::HSLuv_PremultipliedA:
case PrimitiveType::Okhsl_StraightA:
case PrimitiveType::Okhsl_PremultipliedA:
case PrimitiveType::Float_StraightA:
case PrimitiveType::Float_PremultipliedA:
return true;
2 changes: 1 addition & 1 deletion src/Module_Nodes/generated/has_straight_alpha_channel.inl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
case PrimitiveType::Oklab_StraightA:
case PrimitiveType::LinearRGB_StraightA:
case PrimitiveType::sRGB_StraightA:
case PrimitiveType::HSLuv_StraightA:
case PrimitiveType::Okhsl_StraightA:
case PrimitiveType::Float_StraightA:
return true;
Loading

0 comments on commit e7eb113

Please sign in to comment.