Click or drag to resize
AlphaTestMaterial Class
Material with alpha test.
Inheritance Hierarchy

Namespace:  GeonBit.Core.Graphics.Materials
Assembly:  GeonBit (in GeonBit.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class AlphaTestMaterial : MaterialAPI

The AlphaTestMaterial type exposes the following members.

Constructors
  NameDescription
Public methodAlphaTestMaterial
Create the default material from empty effect.
Public methodAlphaTestMaterial(AlphaTestMaterial)
Create the material from another material instance.
Public methodAlphaTestMaterial(AlphaTestEffect, Boolean)
Create the material.
Top
Properties
  NameDescription
Public propertyAlpha
Opacity levels (multiplied with color opacity).
(Inherited from MaterialAPI.)
Public propertyAlphaFunction
The function used to decide which pixels are visible and which are not.
Public propertyAmbientLight
Ambient light color.
(Inherited from MaterialAPI.)
Public propertyDiffuseColor
Diffuse color.
(Inherited from MaterialAPI.)
Public propertyEffect
Get the effect instance.
(Overrides MaterialAPIEffect.)
Public propertyEmissiveLight
Emissive light color.
(Inherited from MaterialAPI.)
Public propertyLightingEnabled
Return if this material support dynamic lighting.
(Inherited from MaterialAPI.)
Public propertyProjection
Current projection matrix.
(Inherited from MaterialAPI.)
Public propertyReferenceAlpha
Alpha value to compare with the AlphaFunction, to decide which pixels are visible and which are not.
Public propertySpecularColor
Specular color.
(Inherited from MaterialAPI.)
Public propertySpecularPower
Specular power.
(Inherited from MaterialAPI.)
Public propertyTexture
Texture to draw.
(Inherited from MaterialAPI.)
Public propertyTextureEnabled
Is texture currently enabled.
(Inherited from MaterialAPI.)
Public propertyView
Current view matrix.
(Inherited from MaterialAPI.)
Public propertyViewProjection
Current view-projection matrix.
(Inherited from MaterialAPI.)
Public propertyWorld
Current world transformations.
(Inherited from MaterialAPI.)
Top
Methods
  NameDescription
Public methodApply
Apply all new properties on the material effect. Call this whenever you want to draw using this material.
(Inherited from MaterialAPI.)
Public methodClone
Clone this material.
(Overrides MaterialAPIClone.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIterateEffectPasses
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.)
Public methodSetBoneTransforms
Set bone transforms for an animated material. Useable only for materials that implement skinned animation in shader.
(Inherited from MaterialAPI.)
Public methodSetDefaults
Set default value for all the basic properties.
(Inherited from MaterialAPI.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldSamplerState
Sampler state.
(Inherited from MaterialAPI.)
Top
See Also