NdotV = dot(N, V);
N = (NdotV >= 0) ? N : (N - 2 * NdotV * V);
N = (NdotV >= 0.0) ? N : (N - 2.0 * NdotV * V);
NdotV = abs(NdotV);
return N;
ZWrite On
ZTest LEqual
// When alpha test is enabled, we should not write into the color buffer
ColorMask 0
HLSLPROGRAM