, float y){\n\tif(u_size.z == 1.){\n\t\treturn vec2(u_frameSpriteRect.x + x, u_frameSpriteRect.y + y) / openfl_TextureSize;\n\t}\n\treturn vec2(x / openfl_TextureSize.x, y / openfl_TextureSize.y);\n}\nvec4 texture2Dgery(vec2 u){\n\tvec4 color = texture2D(openfl_Texture, u);\n\tfloat colorAdd = (color.r + color.b + color.g) / 3.;\n\tcolor.r = step(u_size.w, 0.5) * color.r + colorAdd * step(0.5, u_size.w);\n\tcolor.g = step(u_size.w, 0.5) * color.g + colorAdd * step(0.5, u_size.w);\n\tcolor.b = step(u_size.w,