EnvironmentMapEffect Class
TOC
Collapse the table of content
Expand the table of content

EnvironmentMapEffect Class

Contains a configurable effect that supports environment mapping.

System.Object
  Microsoft.Xna.Framework.Graphics.Effect
    Microsoft.Xna.Framework.Graphics.EnvironmentMapEffect

Namespace:  Microsoft.Xna.Framework.Graphics
Assembly:  Microsoft.Xna.Framework.Graphics.Extensions (in Microsoft.Xna.Framework.Graphics.Extensions.dll)

public class EnvironmentMapEffect : Effect, 
	IEffectMatrices, IEffectLights, IEffectFog

The EnvironmentMapEffect type exposes the following members.

  NameDescription
Public methodEnvironmentMapEffectInitializes a new instance of the EnvironmentMapEffect class.
Top

  NameDescription
Public propertyAlphaGets or sets the material alpha which determines its transparency. Range is between 1 (fully opaque) and 0 (fully transparent).
Public propertyAmbientLightColorGets or sets the ambient color for a light, the range of color values is from 0 to 1.
Public propertyCurrentTechniqueGets or sets the active technique. (Inherited from Effect.)
Public propertyDiffuseColorGets or sets the diffuse color for a material, the range of color values is from 0 to 1.
Public propertyDirectionalLight0Gets the first directional light.
Public propertyDirectionalLight1Gets the second directional light.
Public propertyDirectionalLight2Gets the third directional light.
Public propertyEmissiveColorGets or sets the emissive color for a material, the range of color values is from 0 to 1.
Public propertyEnvironmentMapGets or sets the current environment map texture.
Public propertyEnvironmentMapAmountGets or sets the amount of the environment map color (RGB) that will be blended over the base texture. The value ranges from 0 to 1; the default value is 1.
Public propertyEnvironmentMapSpecularGets or sets the amount of the environment map alpha value that will be added to the base texture. The value ranges from 0 to 1; the default value is 0.
Public propertyFogColorGets or sets the fog color, the range of color values is from 0 to 1.
Public propertyFogEnabledGets or sets the fog enable flag.
Public propertyFogEndGets or sets the maximum z value for fog.
Public propertyFogStartGets or sets the minimum z value for fog.
Public propertyFresnelFactorGets or sets the Fresnel factor used for the environment map blending.
Public propertyIsDisposedGets a value that indicates whether the object is disposed. (Inherited from Effect.)
Public propertyProjectionGets or sets the projection matrix.
Public propertyTechniquesGets a collection of techniques that are defined for this effect. (Inherited from Effect.)
Public propertyTextureGets or sets the current texture.
Public propertyViewGets or sets the view matrix.
Public propertyWorldGets or sets the world matrix.
Top

  NameDescription
Public methodDispose()Immediately releases the unmanaged resources used by this object. (Inherited from Effect.)
Protected methodDispose(Boolean)Releases the unmanaged resources used by the Effect and optionally releases the managed resources. (Inherited from Effect.)
Public methodEnableDefaultLightingSets up standard key, fill, and back lighting for an EnvironmentMapEffect.
Protected methodFinalizeAllows this object to attempt to free resources and perform other cleanup operations before garbage collection reclaims the object. (Inherited from Effect.)
Top

  NameDescription
Explicit interface implemetationPrivate propertyIEffectLights.LightingEnabledEnables lighting in an EnvironmentMapEffect.
Top

Silverlight

Supported in: 5

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2016 Microsoft