om_coord = float2(%s + half2(coord * float2(half2(half(%s), half(%s)))));
float2 delta = (coord - %s.xy) * %s.zw;
delta = min(delta, float2(half2(1.0, 1.0) - half2(delta)));
delta *= float2(half2(half(%s), half(%s)));
half weight = 0.0;
if (delta.x < 2.0 && delta.y < 2.0) {
    delta = float2(half2(2.0, 2.0) - half2(delta));
    half dist = half(length(delta));
    dist = half(max(2.0 - float(dist), 0.0));
    weight = half(min(float(dist * dist), 1.0));
} else {
    