Displacement Shader to Scalar

From Terragen Documentation from Planetside Software
Revision as of 01:56, 27 December 2013 by Jo (talk | contribs)
Jump to navigation Jump to search

Node Description and Purpose:
The Displacement shader to scalar node extracts the displacement generated by the connected shader, and returns the dot product (inner product) of that displacement vector and the current normal. Effectively this is the amount of displacement in the direction of the current normal. It may be positive or negative.

In general, shaders may displace in any direction, so displacement is a vector. However, most of the time when you want to extract displacement for use in other functions you expect a scalar value. Most shaders displace along the normal, so by returning the dot produce of the normal and the displacement vector, this node produces the displacement value you would typically expect.

See also: Displacement Shader to Vector


Node Type: Function


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