Get Position

From Terragen Documentation from Planetside Software
Revision as of 01:21, 18 May 2011 by JavaJones (talk | contribs)
Jump to navigation Jump to search

Get Position

Provides the Position, in world space, of the current Render State. The Render State is affected by any shaders which were called before this function is called, among other things. Position is the current point on/in the surface/volume being rendered or sampled.

When used in the context of displacement, for example in a function network that feeds a displacement shader, Position depends on where the node is connected with respect to other displacement shaders. This is because displacement shaders modify Position immediately.

When used in the context of providing colour and lighting to a surface, for example in a function network that feeds a shader's colour or luminosity, Position is always the "final position" after all displacement. This is because all displacements are performed before any shader's colour and lighting is calculated.

For many shading uses it is better to use Get Position in Texture, because that often provides a value that is consistent between displacement and colour contexts.

The Input connection is not used by this node.