Get Position in Texture

From Terragen Documentation from Planetside Software
Revision as of 00:09, 2 May 2011 by Matt (talk | contribs) (Get Position in Texture)
Jump to: navigation, search

Get Position in Texture[edit]

Get Position in Texture

Provides the "Position In Texture" of the current Render State. The Render State is affected by any shaders which were called before this function is called, among other things. Get Position in Texture provides the 3D texture coordinates at the current point. On imported objects such as OBJs or TGOs, these coordinates are often the UV texture coordinates (where X = U, Y = V, Z = 0). On terrains these coordinates are initially set to the position on the flat planet from which the terrain was displaced, but may be updated by Compute Terrain or Tex Coords From XYZ nodes to provide fully 3D texture coordinates.

The Input connection is not used by this node.

A single object or device in the node network which generates or modifies data and may accept input data or create output data or both, depending on its function. Nodes usually have their own settings which control the data they create or how they modify data passing through them. Nodes are connected together in a network to perform work in a network-based user interface. In Terragen 2 nodes are connected together to describe a scene.