3 using SiliconStudio.Paradox.Assets.Materials.Nodes;
4 using SiliconStudio.Paradox.Effects.Data;
6 namespace SiliconStudio.
Paradox.Assets.Materials.Processor.Visitors
18 foreach (var startNodeName
in Material.ColorNodes)
20 var startNode = Material.FindNode(startNodeName.Value);
21 if (startNode != null)
23 GetParametersFromNode(startNode, parameters);
39 node.VisitNodes((context, nodeEntry) =>
42 if (shaderNode != null)
45 foreach (var member
in shaderNode.GetParameters(context))
46 parameters.
Set(member.Key, member.Value);
48 },
new MaterialContext { Material = Material, ExploreGenerics =
false });
void Set(ParameterKey key, object value)
Description of a material.
Data type for SiliconStudio.Paradox.Effects.ParameterCollection.
MaterialParametersVisitor(MaterialDescription mat)
ParameterCollectionData GetParameters()
Base interface for all nodes in the material tree