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