Translate

Translating a shape is to modify its UV coordinates by adding a value to it. The code below moves a polygon shape around in a loop.

void fragment()
{
	vec2 translate = UV + vec2(cos(TIME), sin(TIME * 2.0)) * 0.2;
	COLOR += polygon(translate, 0.2, 6);
}