Click or drag to resize
MaterialOverrides Class
Helper class to manage materials override properties. You can use this class to set color, material, specular, etc for a specific model renderers, without having to create a new material for them. This allow you to easily override material's defaults without having to define lots of different materials, but note that this method is slightly slower so don't use it on too many entities at the same time.
Inheritance Hierarchy
SystemObject
  GeonBit.Core.GraphicsMaterialOverrides

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

The MaterialOverrides type exposes the following members.

Constructors
  NameDescription
Public methodMaterialOverrides
Initializes a new instance of the MaterialOverrides class
Top
Properties
  NameDescription
Public propertyAlpha
Override Alpha value for this specific entity. Note: will affect all parts of the model.
Public propertyDiffuseColor
Override diffuse color for this specific entity. Note: will affect all parts of the model.
Public propertySpecularColor
Override specular color for this specific entity. Note: will affect all parts of the model.
Public propertyTexture
Override material texture for this specific entity. Note: will affect all parts of the model.
Public propertyUsingOverrideProperties
If true will use the override per-entity properties.
Top
Methods
  NameDescription
Public methodApply
Apply all custom render properties on a given material, and return either the given material or a clone of it, if needed. This will not do anything if there are no custom properties currently used.
Public methodClone
Clone custom render settings.
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 methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also