/ Note: This does not actually generate a branch. The compiler translates this into
    //       an instruction (slt) that returns 0 or 1 and multiplies that times the output color
    if (dot(Data.Direction, TransformedNormal) > 0)
    {
        // in WorldView space, the camera is at <0> so just invert the position
        float3 HalfVector = normalize(normalize(-TransformedPosition.xyz) + Data.Direction);
        Output.Diffuse.rgb += Data.Color.rgb * pow(max(dot(HalfVector, TransformedNormal), 0), SpecularPower);
    }
}
