2023-05-02 16:51:05 +08:00
|
|
|
#define HIGH_PRECISION_VERTEX
|
|
|
|
|
2021-06-21 05:09:47 +08:00
|
|
|
#include "sh_Utils.h"
|
2023-05-02 16:51:05 +08:00
|
|
|
#include "sh_Masking.h"
|
|
|
|
|
|
|
|
layout(location = 2) in highp vec2 v_TexCoord;
|
2021-06-21 05:09:47 +08:00
|
|
|
|
2023-05-02 16:51:05 +08:00
|
|
|
layout(location = 0) out vec4 o_Colour;
|
2021-06-21 05:09:47 +08:00
|
|
|
|
|
|
|
void main(void)
|
|
|
|
{
|
2023-05-02 16:51:05 +08:00
|
|
|
highp float hueValue = v_TexCoord.x / (v_TexRect[2] - v_TexRect[0]);
|
|
|
|
o_Colour = getRoundedColor(hsv2rgb(vec4(hueValue, 1, 1, 1)), v_TexCoord);
|
2021-06-21 05:09:47 +08:00
|
|
|
}
|