Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
LayeredMaterial.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 System.Collections.Generic;
4 using SiliconStudio.Core;
5 using SiliconStudio.Core.Serialization.Contents;
6 
7 namespace SiliconStudio.Paradox.Assets.Materials
8 {
9  /// <summary>
10  /// Material with multiple layers that will be mixed at runtime in the shader
11  /// </summary>
12  [ContentSerializer(typeof(DataContentSerializer<LayeredMaterial>))]
13  [DataContract("LayeredMaterial")]
14  public class LayeredMaterial
15  {
16  /// <summary>
17  /// List of the layers
18  /// </summary>
19  public List<MaterialDescription> Layers { get; set; }
20 
21  /// <summary>
22  /// Number of layers
23  /// </summary>
24  public int LayerCount
25  {
26  get
27  {
28  return Layers.Count;
29  }
30  }
31 
32  public LayeredMaterial()
33  {
34  Layers = new List<MaterialDescription>();
35  }
36  }
37 }
Material with multiple layers that will be mixed at runtime in the shader