mirror of
https://github.com/ppy/osu.git
synced 2024-11-07 23:47:32 +08:00
12 lines
230 B
Forth
12 lines
230 B
Forth
|
#include "sh_Utils.h"
|
||
|
|
||
|
varying mediump vec2 v_TexCoord;
|
||
|
varying mediump vec4 v_TexRect;
|
||
|
|
||
|
void main(void)
|
||
|
{
|
||
|
float hueValue = v_TexCoord.x / (v_TexRect[2] - v_TexRect[0]);
|
||
|
gl_FragColor = hsv2rgb(vec4(hueValue, 1, 1, 1));
|
||
|
}
|
||
|
|