| SpriteMaterial Class |
Namespace: GeonBit.Core.Graphics.Materials
public class SpriteMaterial : AlphaTestMaterial
The SpriteMaterial type exposes the following members.
| Name | Description | |
|---|---|---|
| SpriteMaterial |
Create the default material from empty effect.
| |
| SpriteMaterial(AlphaTestEffect, Boolean) |
Create the default material.
|
| Name | Description | |
|---|---|---|
| Alpha |
Opacity levels (multiplied with color opacity).
(Inherited from MaterialAPI.) | |
| AlphaFunction |
The function used to decide which pixels are visible and which are not.
(Inherited from AlphaTestMaterial.) | |
| AmbientLight |
Ambient light color.
(Inherited from MaterialAPI.) | |
| DiffuseColor |
Diffuse color.
(Inherited from MaterialAPI.) | |
| Effect |
Get the effect instance.
(Inherited from AlphaTestMaterial.) | |
| EmissiveLight |
Emissive light color.
(Inherited from MaterialAPI.) | |
| LightingEnabled |
Return if this material support dynamic lighting.
(Inherited from MaterialAPI.) | |
| Projection |
Current projection matrix.
(Inherited from MaterialAPI.) | |
| ReferenceAlpha |
Alpha value to compare with the AlphaFunction, to decide which pixels are visible and which are not.
(Inherited from AlphaTestMaterial.) | |
| SpecularColor |
Specular color.
(Inherited from MaterialAPI.) | |
| SpecularPower |
Specular power.
(Inherited from MaterialAPI.) | |
| Texture |
Texture to draw.
(Inherited from MaterialAPI.) | |
| TextureEnabled |
Is texture currently enabled.
(Inherited from MaterialAPI.) | |
| View |
Current view matrix.
(Inherited from MaterialAPI.) | |
| ViewProjection |
Current view-projection matrix.
(Inherited from MaterialAPI.) | |
| World |
Current world transformations.
(Inherited from MaterialAPI.) |
| Name | Description | |
|---|---|---|
| Apply |
Apply all new properties on the material effect.
Call this whenever you want to draw using this material.
(Inherited from MaterialAPI.) | |
| Clone |
Clone this material.
(Inherited from AlphaTestMaterial.) | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| IterateEffectPasses |
Iterate over all passes in current technique and call the provided callback for each pass.
You can use this function to draw stuff manually.
(Inherited from MaterialAPI.) | |
| SetBoneTransforms |
Set bone transforms for an animated material.
Useable only for materials that implement skinned animation in shader.
(Inherited from MaterialAPI.) | |
| SetDefaults |
Set default value for all the basic properties.
(Inherited from MaterialAPI.) | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| SamplerState |
Sampler state.
(Inherited from MaterialAPI.) |