TerraForge3D
2.3.1
3D Terrain And Landscape Generator
◆
Evaluate()
NodeOutput
AbsNode::Evaluate
(
NodeInputParam
input
,
NodeEditorPin
*
pin
)
virtual
Implements
NodeEditorNode
.
Definition at line
9
of file
AbsNode.cpp
.
10
{
11
float
x = 1;
12
13
if
(inputPins[0]->IsLinked())
14
{
15
x = inputPins[0]->other->Evaluate(input).value;
16
}
17
18
else
19
{
20
x = value1;
21
}
22
23
if
(inputPins[1]->IsLinked())
24
{
25
x *= inputPins[1]->other->Evaluate(input).value;
26
}
27
28
else
29
{
30
x *= value2;
31
}
32
33
return
NodeOutput
({ abs(x) });
34
}
NodeOutput
Definition:
NodeEditor.h:26
AbsNode
Generated on Thu Apr 7 2022 14:10:51 for TerraForge3D by
1.9.3