BasicMaterial Class |
Namespace: GeonBit.Core.Graphics.Materials
public class BasicMaterial : MaterialAPI
The BasicMaterial type exposes the following members.
Name | Description | |
---|---|---|
BasicMaterial |
Create the default material from empty effect.
| |
BasicMaterial(BasicMaterial) |
Create the material from another material instance.
| |
BasicMaterial(BasicEffect, Boolean) |
Create the default material.
|
Name | Description | |
---|---|---|
Alpha |
Opacity levels (multiplied with color opacity).
(Inherited from MaterialAPI.) | |
AmbientLight |
Ambient light color.
(Inherited from MaterialAPI.) | |
DiffuseColor |
Diffuse color.
(Inherited from MaterialAPI.) | |
Effect |
Get the effect instance.
(Overrides MaterialAPIEffect.) | |
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.) | |
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.
(Overrides MaterialAPIClone.) | |
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.) |