| LitMaterial Class | 
 Inheritance Hierarchy
Inheritance HierarchyNamespace: GeonBit.Core.Graphics.Materials
 Syntax
Syntaxpublic class LitMaterial : MaterialAPI
The LitMaterial type exposes the following members.
 Constructors
Constructors| Name | Description | |
|---|---|---|
|  | LitMaterial | 
            Create the lit material from an empty effect.
             | 
|  | LitMaterial(Effect) | 
            Create the lit material.
             | 
|  | LitMaterial(LitMaterial) | 
            Create the material from another material instance.
             | 
|  | LitMaterial(BasicEffect, Boolean) | 
            Create the lit material.
             | 
 Properties
Properties| 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.
            (Overrides MaterialAPILightingEnabled.) | 
|  | MaxLightIntensity | 
            Max light intensity from regular light sources (before specular).
             | 
|  | 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.) | 
 Methods
Methods| 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.) | 
|   | CreateEffect | 
            Create new lit effect instance.
             | 
|  | 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.) | 
 Fields
Fields| Name | Description | |
|---|---|---|
|  | SamplerState | 
            Sampler state.
            (Inherited from MaterialAPI.) | 
 See Also
See Also