sped up calculating normalmap