11 lines
No EOL
299 B
Text
11 lines
No EOL
299 B
Text
vec3 nd1sl2=vec3(UV,0);
|
|
float nd2sl1=1-nd1sl2.y;
|
|
vec3 nd3sl0=vec3(nd2sl1,1,1);
|
|
vec3 nd6sl0;
|
|
{
|
|
vec3 c = nd3sl0;
|
|
vec4 K = vec4(1.0, 2.0 / 3.0, 1.0 / 3.0, 3.0);
|
|
vec3 p = abs(fract(c.xxx + K.xyz) * 6.0 - K.www);
|
|
nd6sl0=c.z * mix(K.xxx, clamp(p - K.xxx, 0.0, 1.0), c.y);
|
|
}
|
|
COLOR.rgb=nd6sl0; |