Use clamp instead of max(0, dot(normalized, normalized))

Should help GLSL compiler to optimize them.