The Ray Direction node converts the direction of the incoming ray into an RGB texture (figure 1).
Figure 1: A Ray Direction node is connected to the DiffuseAmount of diffusion, or the reflection of light photons at different angles from an uneven or granular surface. Used for dull, non-reflecting materials or mesh emitters. pin on a Diffuse materialUsed for dull, non-reflecting materials or mesh emitters. node
View Direction - If checked, the resulting vector is determined from the viewing position to the shaded point position, if not checked, the data is calculated in the opposite direction.
Coordinate System - The coordinate space used to output the ray direction.
Normalize Result - Determines whether to rempa the results to the 0 to 1 range or leave it in the -1 to 1 range.