Get Ray Origin
Get Ray Origin
Provides the Ray Origin (or virtual viewer) of the current Render State. The Render State is affected by any shaders which were called before this function is called, among other things.
The Ray Origin depends on the situation which led to the current shaders to be called. For example, if a shader is being calculated to reflect on the surface of another object, the Ray Origin will be the point on the other object where the reflection appears.
For most shading applications, Get Ray Origin is the correct function to use when you want to know where the surface is being viewed from. When shading a directly-visible surface (a primary ray), Get Ray Origin usually gives the same result as Get Camera Position, but for realistic reflections and other shading effects Get Camera Position you should account for the actual ray between the point being shaded and the point at which the reflection occurs (the Ray Origin).
The Input connection is not used by this node.
