[MAYA] - Tri-Planar Texture Projection

Hi,
I’m trying to make shader based on this tutorial:

http://technicalartlead.blogspot.com/p/materials-textures.html
(Better Tri-Planar Texture Projection)

But when I render scene, shader looks like this :
http://i.imgur.com/QmuTVU3.jpg

Instead of getting world coordinates normals I got camera space normals with Z-axis always facing towards camera (A). Although on the viewport (B) shader seams to work properly.