Ensure normals are used in calculations
Rearrange material code