SkinnedEffect Class
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Contains a configurable effect for rendering skinned character models.
Inheritance Hierarchy
System.Object
Microsoft.Xna.Framework.Graphics.Effect
Microsoft.Xna.Framework.Graphics.SkinnedEffect
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics.Extensions (in Microsoft.Xna.Framework.Graphics.Extensions.dll)
Syntax
'Declaration
Public Class SkinnedEffect _
Inherits Effect _
Implements IEffectMatrices, IEffectLights, IEffectFog
public class SkinnedEffect : Effect,
IEffectMatrices, IEffectLights, IEffectFog
The SkinnedEffect type exposes the following members.
Constructors
Name | Description | |
---|---|---|
SkinnedEffect | Initializes a new instance of the SkinnedEffect class. |
Top
Properties
Name | Description | |
---|---|---|
Alpha | Gets or sets the material alpha which determines its transparency. Range is between 1 (fully opaque) and 0 (fully transparent). | |
AmbientLightColor | Gets or sets the ambient color for a light, the range of color values is from 0 to 1. | |
CurrentTechnique | Gets or sets the active technique. (Inherited from Effect.) | |
DiffuseColor | Gets or sets the diffuse color for a material, the range of color values is from 0 to 1. | |
DirectionalLight0 | Gets the first directional light. | |
DirectionalLight1 | Gets the second directional light. | |
DirectionalLight2 | Gets the third directional light. | |
EmissiveColor | Gets or sets the emissive color for a material, the range of color values is from 0 to 1. | |
FogColor | Gets or sets the fog color, the range of color values is from 0 to 1. | |
FogEnabled | Gets or sets the fog enable flag. | |
FogEnd | Gets or sets the maximum z value for fog. | |
FogStart | Gets or sets the minimum z value for fog. | |
IsDisposed | Gets a value that indicates whether the object is disposed. (Inherited from Effect.) | |
PreferPerPixelLighting | Gets or sets the per-pixel prefer lighting flag. | |
Projection | Gets or sets the projection matrix. | |
SpecularColor | Gets or sets the specular color for a material, the range of color values is from 0 to 1. | |
SpecularPower | Gets or sets the material specular power. | |
Techniques | Gets a collection of techniques that are defined for this effect. (Inherited from Effect.) | |
Texture | Gets or sets the current texture. | |
View | Gets or sets the view matrix. | |
WeightsPerVertex | Gets or sets the number of per-vertex skinning weights to evaluate, which is either 1, 2, or 4. | |
World | Gets or sets the world matrix. |
Top
Methods
Name | Description | |
---|---|---|
Dispose() | Immediately releases the unmanaged resources used by this object. (Inherited from Effect.) | |
Dispose(Boolean) | Releases the unmanaged resources used by the Effect and optionally releases the managed resources. (Inherited from Effect.) | |
EnableDefaultLighting | Sets up standard key, fill, and back lighting for a SkinnedEffect. | |
Finalize | Allows this object to attempt to free resources and perform other cleanup operations before garbage collection reclaims the object. (Inherited from Effect.) | |
GetBoneTransforms | Gets the bone transform matrices for a SkinnedEffect. | |
SetBoneTransforms | Sets an array of bone transform matrices for a SkinnedEffect. |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IEffectLights.LightingEnabled | Enables lighting in an SkinnedEffect. |
Top
Version Information
Silverlight
Supported in: 5
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.