Optimize normal mapping by using precomputed w.