Color Mesh by normals

Hi everyone,

I was following this guide here to colorize a mesh using its normals. However, I seem to be getting incorrect results in comparison to when I render it using vray. Is there some global factor that I am missing? Is there an alternative way?

error