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