2017-09-30 11:23:14 +02:00
|
|
|
vec2 map( vec3 pos )
|
|
|
|
{
|
2017-09-30 12:08:18 +02:00
|
|
|
vec3 q = pos;
|
|
|
|
q.xy = mod( q.xy + 2. , 4. ) - 2.;
|
2017-09-30 17:58:48 +02:00
|
|
|
return vec2( length( q ) - 1.8 , step( 0. , 1.9 - length( pos.xy ) ) );
|
2017-09-30 11:23:14 +02:00
|
|
|
}
|