mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-04 08:46:09 +00:00
Display the Hue bar in ColorTintShadeTone with saturation/value=1.0
This is the previous behavior, but might change in the future.
This commit is contained in:
parent
aca96c6d36
commit
4f9fe90304
@ -61,11 +61,13 @@ const char* ColorTintShadeTone::getBottomBarShader()
|
|||||||
"uniform half4 iColor;";
|
"uniform half4 iColor;";
|
||||||
m_bottomShader += kRGB_to_HSV_sksl;
|
m_bottomShader += kRGB_to_HSV_sksl;
|
||||||
m_bottomShader += kHSV_to_RGB_sksl;
|
m_bottomShader += kHSV_to_RGB_sksl;
|
||||||
|
// TODO should we display the hue bar with the current sat/value?
|
||||||
m_bottomShader += R"(
|
m_bottomShader += R"(
|
||||||
half4 main(vec2 fragcoord) {
|
half4 main(vec2 fragcoord) {
|
||||||
half h = (fragcoord.x / iRes.x);
|
half h = (fragcoord.x / iRes.x);
|
||||||
half3 hsv = rgb_to_hsv(iColor.rgb);
|
// half3 hsv = rgb_to_hsv(iColor.rgb);
|
||||||
return hsv_to_rgb(half3(h, hsv.y, hsv.z)).rgb1;
|
// return hsv_to_rgb(half3(h, hsv.y, hsv.z)).rgb1;
|
||||||
|
return hsv_to_rgb(half3(h, 1.0, 1.0)).rgb1;
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user