This node calculates the average between two terrains. At each vertex, the value of the output terrain is the average of the values of both input terrains.
To add a node, right-click in the Graph Editor and select Create Node > Terrain Composition > Average.
This node has no properties.
Link the Average node to two input nodes.
If both input terrains do not have the same size or resolution, the size and resolution of the output terrain is determined by the size and resolution of the first terrain, and the second terrain is enlarged or decreased so that its size corresponds exactly to the size of the output terrain, before being compared to the first terrain.
For example:
Link the Average using mask node to two input terrains and a mask.
At each vertex, if the value of the mask is equal
to 1 (white color), the height of the output terrain is equal to
the height of the first input terrains. The second input terrain is
therefore ignored for this vertex.
If the value of the mask is equal to 0 (black color), the height of
the output terrain is equal to the height of the second input
terrains. The first input terrain is therefore ignored for this
vertex.
If the value of the mask is between 0 and 1, the height of the
second input terrain is multiplied by the subtraction of 1 and the
value of the mask before being added to the height of the first
input terrain multiplied by the value of the mask.
For example:
Both input terrains and the input mask can have different sizes and resolutions. The size and resolution of the output terrain are determined by those of the first terrain, and the second terrain and the mask are enlarged or reduced so that their size corresponds exactly to the size of the output terrain.
Copyright © 2022 · All Rights Reserved · Wysilab