uniform half4 colorGreen; inline half4 multiply(half4 x, half y) { half4 value = x * y; return value; } half4 main(float2 coords) { half4 result; for (int x=0; x<4; ++x) result = multiply(colorGreen, 1); return result; }