Difference between revisions of "Get Position in Texture"
(→Get Position in Texture) |
|||
Line 4: | Line 4: | ||
[[Image:drex_module_40_image_0.png|485pxpx|Get Position in Texture]] | [[Image:drex_module_40_image_0.png|485pxpx|Get Position in Texture]] | ||
− | Provides the "Position In Texture" of the | + | 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. |
__NOTOC__ | __NOTOC__ | ||
<!-- imported from file: module_40.html--> | <!-- imported from file: module_40.html--> |
Revision as of 00:07, 2 May 2011
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.