3 using System.Collections.Generic;
4 using SiliconStudio.Core;
5 using SiliconStudio.Core.Serialization.Contents;
7 namespace SiliconStudio.Paradox.Assets.Materials.Nodes
12 [ContentSerializer(typeof(DataContentSerializer<MaterialBinaryNode>))]
13 [DataContract(
"MaterialBinaryNode")]
31 LeftChild = leftChild;
32 RightChild = rightChild;
33 Operand = materialBinaryOperand;
66 if (LeftChild != null)
68 if (RightChild != null)
69 yield
return new MaterialNodeEntry(RightChild, node => RightChild = node);
75 return "Binary operation";
Base implementation for IMaterialNode.
A node that describe a binary operation between two IMaterialNode
An entry to a nested IMaterialNode
MaterialBinaryNode()
Initializes a new instance of the MaterialBinaryNode class.
MaterialBinaryNode(IMaterialNode leftChild, IMaterialNode rightChild, MaterialBinaryOperand materialBinaryOperand)
Initializes a new instance of the MaterialBinaryNode class.
MaterialBinaryOperand
Operands of the MaterialNode.
override string ToString()
Base interface for all nodes in the material tree
override IEnumerable< MaterialNodeEntry > GetChildren(object context=null)
Gets the children. The context to get the children.The list of children.