distToOriginSqr);

    // Ensure that the gradient space does not wrap around,
    // interpolating with the last stop at the center point.
    if (sampleGradientTexCoord < GradInfoParams.flHalfTexelSizeNormalized)
    {
        sampleGradientTexCoord = GradInfoParams.flHalfTexelSizeNormalized;
    }

    sampleGradientColor = tex1D(TextureSampler, sampleGradientTexCoord);

    color *= sampleGradientColor;
}
