Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
Light.cs
Go to the documentation of this file.
1 using SiliconStudio.Core.Mathematics;
2 using SiliconStudio.Paradox.Effects.Modules;
3 using SiliconStudio.Paradox.Engine;
4 
5 namespace SiliconStudio.Paradox.Effects
6 {
7  public class Light
8  {
9  public Light()
10  {
11  Parameters = new ParameterCollection("Light Parameters");
12  LightColor = new Color3(1.0f, 1.0f, 1.0f);
13  LightShaderType = LightShaderType.DiffuseSpecularPixel;
14  }
15 
16  public LightShaderType LightShaderType { get; set; }
17 
18  public ParameterCollection Parameters { get; set; }
19 
20  /// <summary>
21  /// Gets or sets the color of the light.
22  /// </summary>
23  /// <value>
24  /// The color of the light.
25  /// </value>
26  public Color3 LightColor
27  {
28  get { return Parameters.TryGet(LightKeys.LightColor); }
29  set { Parameters.Set(LightKeys.LightColor, value); }
30  }
31  }
32 }
Represents a color in the form of rgb.
Definition: Color3.cs:41
A container to handle a hierarchical collection of effect variables.