// constructors /// <summary>Creates a new instance of this class.</summary> /// <param name="ambientLight">The ambient light color.</param> /// <param name="diffuseLight">The diffuse light color.</param> /// <param name="specularLight">The specular light color.</param> /// <param name="lightDirection">The direction the light shines at.</param> public DirectionalLight(Color.ColorRGB ambientLight, Color.ColorRGB diffuseLight, Color.ColorRGB specularLight, Math.Vector3 lightDirection) { this.AmbientLight = ambientLight; this.DiffuseLight = diffuseLight; this.SpecularLight = specularLight; this.LightDirection = lightDirection; }
// constructors /// <summary>Creates a new instance of this structure.</summary> /// <param name="emissiveColor">The emissive color.</param> /// <param name="daytimeTexture">A handle to the daytime texture.</param> /// <param name="nighttimeTexture">A handle to the nighttime texture.</param> /// <param name="blendMode">The blend type.</param> public Material(Color.ColorRGB emissiveColor, Texture.TextureHandle daytimeTexture, Texture.TextureHandle nighttimeTexture, BlendMode blendMode) { this.EmissiveColor = emissiveColor; this.DaytimeTexture = daytimeTexture; this.NighttimeTexture = nighttimeTexture; this.BlendMode = blendMode; }