Tex Coords From XYZ: Difference between revisions
No edit summary |
Enhanced description for node and added example image. |
||
| Line 1: | Line 1: | ||
[[ | [[File:TexCoordXYZ_00_GUI.png|none|470px|Tex Coords From XYZ]] | ||
==Overview== | |||
The Tex Coords from XYZ node generates world space texture coordinates for the shader or function nodes assigned its Main Input. | |||
''' | That is, it returns the current altitude of a given sample point which more than likely has been modified by displacements, such as a Power fractal shader, from its original position on the planet’s smooth surface. | ||
Without this information, certain shaders within Terragen such as the Surface Layer shader, might not have the correct altitude values at render time. Click here for more information about an item’s render state. | |||
Taking the default Terragen project for example, if displacements occur after the Compute terrain node in the Terrain group then it’s possible that a Surface Layer shader providing colour information for the terrain might not have the correct altitudes to apply colour or constraints. | |||
<b>Settings: </b> | |||
<ul> | |||
*'''Name: '''This setting allows you to apply a descriptive name to the node, which can be helpful when using multiple Tex Coords from XYZ shader nodes in a project. | |||
*'''Enable: '''When checked, the node is active and the current world space texture coordinates will be calculated for the shader or function nodes assigned to the Main input. This includes all nodes upstream from the assigned shader node. | |||
</ul> | |||
[[File:TexCoordXYZ_01_Example.jpg|none|800px|Workflow showing a displaced terrain with and without using a Tex Coord From XYZ node.]] | |||
</br> | |||
[[Category:Other Shader]] | [[Category:Other Shader]] | ||
Revision as of 01:27, 15 June 2021

Overview
The Tex Coords from XYZ node generates world space texture coordinates for the shader or function nodes assigned its Main Input.
That is, it returns the current altitude of a given sample point which more than likely has been modified by displacements, such as a Power fractal shader, from its original position on the planet’s smooth surface.
Without this information, certain shaders within Terragen such as the Surface Layer shader, might not have the correct altitude values at render time. Click here for more information about an item’s render state.
Taking the default Terragen project for example, if displacements occur after the Compute terrain node in the Terrain group then it’s possible that a Surface Layer shader providing colour information for the terrain might not have the correct altitudes to apply colour or constraints.
Settings:
