             break;
     }
 
-#ifdef WR_FEATURE_ALPHA_PASS
     vLocalPos = vi.local_pos;
 #endif
 }

    vec2 uv = clamp(vUv.xy, vUvBounds.xy, vUvBounds.zw);

    vec4 texel = TEX_SAMPLE(sColor0, vec3(uv, vUv.z));
    vec4 mask = mix(texel.rrrr, texel.aaaa, vSelect.x);
    vec4 color = mix(texel, vColor * mask, vSelect.y);

#ifdef WR_FEATURE_ALPHA_PASS
    color *= init_transform_fs(vLocalPos);
#endif

    return color;

        max(uv0, uv1) - vec2(0.5)
    ) / texture_size.xyxy;

#ifdef WR_FEATURE_ALPHA_PASS
    switch (user_data.y) {
        case IMAGE_SOURCE_COLOR:
            vSelect = vec2(0.0, 0.0);
