Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
LightingAsset.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.Assets;
4 using SiliconStudio.Assets.Compiler;
5 using SiliconStudio.Core;
6 
7 namespace SiliconStudio.Paradox.Assets.Effect
8 {
9  /// <summary>
10  /// Describes an lighting configuration asset.
11  /// </summary>
12  [DataContract("LightingConfiguration")]
13  [AssetFileExtension(FileExtension)]
14  [AssetCompiler(typeof(LightingAssetCompiler))]
15  [AssetDescription("Lighting Configuration", "A lighting configuration", false)]
16  public sealed class LightingAsset : Asset
17  {
18  /// <summary>
19  /// The default file extension used by the <see cref="EffectLibraryAsset"/>.
20  /// </summary>
21  public const string FileExtension = ".pdxlightconf";
22 
23  /// <summary>
24  /// Initializes a new instance of the <see cref="EffectLibraryAsset"/> class.
25  /// </summary>
26  public LightingAsset()
27  {
28  BuildOrder = 1000;
29  Permutations = new EffectPermutation();
30  }
31 
32  /// <summary>
33  /// Gets the root definition for permutations
34  /// </summary>
35  /// <value>The the root definition for permutations.</value>
36  /// <userdoc>
37  /// The supported lighting configurations (number of lights and shadow maps) written as permutations. Non-lighting related keys will be ignored.
38  /// </userdoc>
39  [DataMember(10)]
40  public EffectPermutation Permutations { get; set; }
41  }
42 }
Base class for Asset.
Definition: Asset.cs:14
A set of permutation for a specific effect.
LightingAsset()
Initializes a new instance of the EffectLibraryAsset class.
Describes an lighting configuration asset.
Contains user-friendly names and descriptions of an asset type.