Displacement Shader: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 16: | Line 16: | ||
<ul> | <ul> | ||
<li> | <li> | ||
<u>Along vertical:</u> Displacement will happen along the | <u>Along vertical:</u> Displacement will happen along the existing normals of the underlying object (i.e. the planet or a model) prior to any other displacement having been applied. | ||
</li><li> | </li><li> | ||
<u>Along normal:</u> Displacement will happen along the current surface normal. | <u>Along normal:</u> Displacement will happen along the current surface normal. | ||
Revision as of 18:36, 16 October 2014

Node Description and Purpose:
The Displacement shader takes the values generated by the connected function nodes and turns them into displacement. You can connect any sort of function nodes to the input but the input value is converted to a scalar.
Node Type: Displacement Shader
Settings:
- Function: You connect the function node(s) which generate the displacement values to this input.
-
Displacement direction: This popup list allows you to choose the direction that displacement is applied in. Any options in the popup list that have "(requires computed normal)" require that there be a Compute Terrain or Compute Normal connected somewhere above the node in the network to work properly. The popup has the following options:
- Along vertical: Displacement will happen along the existing normals of the underlying object (i.e. the planet or a model) prior to any other displacement having been applied.
- Along normal: Displacement will happen along the current surface normal.
- Vertical only (requires computed normal): Displacement only happens along the normal of the underlying object (i.e. the planet or a model). The displacement is scaled by the difference between the object normal and the surface normal. Displacement is reduced as the angle between the normals approaches 90°.
- Lateral only (requires computed normal): Displacement only occurs in the lateral plane, or in other words perpendicular to the normal of the underlying object.
- Lateral normalized (requires computed normal): This is the same as Lateral only but the normal is normalised (scaled so it has a length of 1).
- Displacement multiplier: This multiplies the displacement values coming from the Function input. A value of 1 leaves the incoming values unchanged. A value of 2 would make the incoming values twice as large. A value of 0.5 would make them half as large. Negative values will invert the displacement.