Displacement Shader to Vector: Difference between revisions

From Terragen Documentation from Planetside Software
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 2: Line 2:
The Displacement shader to vector node extracts the displacement generated by the connected shader and returns it as a vector, which can then be used by other function nodes.
The Displacement shader to vector node extracts the displacement generated by the connected shader and returns it as a vector, which can then be used by other function nodes.


In general, shaders may displace in any direction, so displacement is a vector. Note that if you connect this node to a function that expects a scalar input, a scalar will be generated from the length (magnitude) of the vector according to Terragen's conversion rules. Be aware that this may not give you the results you expect if the displacement is negative, because the resulting scalar will always be positive or 0. In many cases it is better to use [[Displacement_Shader_to_Scalar]].
In general, shaders may displace in any direction, so displacement is a vector. Note that if you connect this node to a function that expects a scalar input, a scalar will be generated from the length (magnitude) of the vector according to Terragen's conversion rules. Be aware that this may not give you the results you expect if the displacement is negative, because the resulting scalar will always be positive or 0. In many cases [[Displacement_Shader_to_Scalar]] may be more suitable.


See also: [[Displacement_Shader_to_Scalar]]
See also: [[Displacement_Shader_to_Scalar]]

Revision as of 04:06, 7 December 2013

Node Description and Purpose:
The Displacement shader to vector node extracts the displacement generated by the connected shader and returns it as a vector, which can then be used by other function nodes.

In general, shaders may displace in any direction, so displacement is a vector. Note that if you connect this node to a function that expects a scalar input, a scalar will be generated from the length (magnitude) of the vector according to Terragen's conversion rules. Be aware that this may not give you the results you expect if the displacement is negative, because the resulting scalar will always be positive or 0. In many cases Displacement_Shader_to_Scalar may be more suitable.

See also: Displacement_Shader_to_Scalar


Node Type: Function


Settings:
This node has no other settings apart from the Input node.