// MonoGame - Copyright (C) The MonoGame Team // This file is subject to the terms and conditions defined in // file 'LICENSE.txt', which is part of this source code package. namespace Microsoft.Xna.Framework.Content.Pipeline.Graphics { public class EnvironmentMapMaterialContent : MaterialContent { public const string AlphaKey = "Alpha"; public const string DiffuseColorKey = "DiffuseColor"; public const string EmissiveColorKey = "EmissiveColor"; public const string EnvironmentMapKey = "EnvironmentMap"; public const string EnvironmentMapAmountKey = "EnvironmentMapAmount"; public const string EnvironmentMapSpecularKey = " EnvironmentMapSpecular"; public const string FresnelFactorKey = "FresnelFactor"; public const string TextureKey = "Texture"; public float? Alpha { get { return GetValueTypeProperty(AlphaKey); } set { SetProperty(AlphaKey, value); } } public Vector3? DiffuseColor { get { return GetValueTypeProperty(DiffuseColorKey); } set { SetProperty(DiffuseColorKey, value); } } public Vector3? EmissiveColor { get { return GetValueTypeProperty(EmissiveColorKey); } set { SetProperty(EmissiveColorKey, value); } } public ExternalReference EnvironmentMap { get { return GetTexture(EnvironmentMapKey); } set { SetTexture(EnvironmentMapKey, value); } } public float? EnvironmentMapAmount { get { return GetValueTypeProperty(EnvironmentMapAmountKey); } set { SetProperty(EnvironmentMapAmountKey, value); } } public Vector3? EnvironmentMapSpecular { get { return GetValueTypeProperty(EnvironmentMapSpecularKey); } set { SetProperty(EnvironmentMapSpecularKey, value); } } public float? FresnelFactor { get { return GetValueTypeProperty(FresnelFactorKey); } set { SetProperty(FresnelFactorKey, value); } } public ExternalReference Texture { get { return GetTexture(TextureKey); } set { SetTexture(TextureKey, value); } } } }