Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
MaterialColorNode.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using SiliconStudio.Core;
4 using SiliconStudio.Core.Mathematics;
5 using SiliconStudio.Core.Serialization.Contents;
6 
7 namespace SiliconStudio.Paradox.Assets.Materials.Nodes
8 {
9  [ContentSerializer(typeof(DataContentSerializer<MaterialColorNode>))]
10  [DataContract("MaterialColorNode")]
11  public class MaterialColorNode : MaterialConstantNode<Color4>
12  {
13  /// <summary>
14  /// Initializes a new instance of the <see cref="MaterialColorNode"/> class.
15  /// </summary>
17  : this(Color4.Black)
18  {
19  }
20 
21  /// <summary>
22  /// Initializes a new instance of the <see cref="MaterialColorNode"/> class.
23  /// </summary>
24  /// <param name="value">The value.</param>
25  public MaterialColorNode(Color4 value)
26  : base(value)
27  {
28  }
29 
30  /// <inheritdoc/>
31  public override string ToString()
32  {
33  return "Color";
34  }
35  }
36 }
Represents a color in the form of rgba.
Definition: Color4.cs:42
MaterialColorNode(Color4 value)
Initializes a new instance of the MaterialColorNode class.
MaterialColorNode()
Initializes a new instance of the MaterialColorNode class.