| DefaultEffectParameterSemantics Class |
Namespace: DigitalRune.Graphics.Effects
The DefaultEffectParameterSemantics type exposes the following members.
| Name | Description | |
|---|---|---|
| Alpha |
The opacity (alpha) as a single value (Single).
| |
| BlendMode |
The blend mode (Single): 0 = additive blending, 1 = normal alpha blending
| |
| Bones |
The skinning matrices for mesh skinning (array of Matrix).
| |
| Debug |
A 4-element vector with user-defined data for debugging (Vector4).
| |
| DiffuseColor | ||
| DiffuseTexture |
The albedo texture (Texture2D).
| |
| DitherMap | ||
| ElapsedTime |
The time since the previous frame in seconds (Single).
| |
| EmissiveColor | ||
| EmissiveTexture |
The emissive texture (Texture2D).
| |
| FresnelPower |
The power of the Fresnel term (Single).
| |
| GBuffer | ||
| InstanceAlpha |
The instance opacity (alpha) as a single value (Single).
| |
| InstanceColor |
The instance color as RGB (Vector3).
| |
| JitterMap | ||
| JitterMapSize | ||
| LastTime |
The simulation time of the previous frame in seconds
(Single).
| |
| LightBuffer | ||
| MorphWeight | ||
| NaN | ||
| NoiseMap | ||
| NormalsFittingTexture | ||
| NormalTexture |
The surface normal texture (Texture2D).
| |
| Opacity |
The opacity (alpha) as a single value (Single).
| |
| PassIndex |
The zero-based index of the current effect pass (Int32).
| |
| ReferenceAlpha |
The reference value (Single) used for alpha testing.
| |
| SourceTexture |
The source texture which is usually the last backbuffer or the result of a previous
post-processor (Texture2D).
| |
| SpecularColor | ||
| SpecularPower | ||
| SpecularTexture |
The gloss texture (Texture2D) containing the specular intensity (not specular
power).
| |
| Time |
The simulation time in seconds (Single).
| |
| ViewportSize |
The viewport width and height in pixels (Vector2).
|
The standard semantic define the meaning of effect parameters. See EffectParameterDescription.
Important: General semantics specified in an .fx files are case-insensitive. Therefore, use the InvariantCultureIgnoreCase string comparer for parsing .fx files. But when accessed from code (C# or VB.NET) the strings are case-sensitive! That means the standard semantics stored in EffectParameterDescription can be compared directly.