MaterialAPI Class |
Namespace: GeonBit.Core.Graphics.Materials
public abstract class MaterialAPI
The MaterialAPI type exposes the following members.
Name | Description | |
---|---|---|
![]() | Alpha |
Opacity levels (multiplied with color opacity).
|
![]() | AmbientLight |
Ambient light color.
|
![]() | DiffuseColor |
Diffuse color.
|
![]() | Effect |
Get the effect instance.
|
![]() | EmissiveLight |
Emissive light color.
|
![]() | LightingEnabled |
Return if this material support dynamic lighting.
|
![]() | Projection |
Current projection matrix.
|
![]() | SpecularColor |
Specular color.
|
![]() | SpecularPower |
Specular power.
|
![]() | Texture |
Texture to draw.
|
![]() | TextureEnabled |
Is texture currently enabled.
|
![]() | View |
Current view matrix.
|
![]() | ViewProjection |
Current view-projection matrix.
|
![]() | World |
Current world transformations.
|
Name | Description | |
---|---|---|
![]() | Apply |
Apply all new properties on the material effect.
Call this whenever you want to draw using this material.
|
![]() | Clone |
Clone this material.
|
![]() | 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.
|
![]() | SetBoneTransforms |
Set bone transforms for an animated material.
Useable only for materials that implement skinned animation in shader.
|
![]() | SetDefaults |
Set default value for all the basic properties.
|
![]() ![]() | SetViewProjection |
Set materials view and projection matrixes (shared by all materials).
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
![]() ![]() | DefaultSamplerState |
Default sampler state.
|
![]() ![]() | EffectsPath |
Path of GeonBit built-in effects.
|
![]() | SamplerState |
Sampler state.
|