6 lines
149 B
GLSL
6 lines
149 B
GLSL
vec2 map( vec3 pos )
|
|
{
|
|
vec3 q = pos;
|
|
q.xy = mod( q.xy + 2. , 4. ) - 2.;
|
|
return vec2( length( q ) - 1.8 , step( 0. , 1.9 - length( pos.xy ) ) );
|
|
}
|