Click or drag to resize
AB4D logo

FaceColorEffect Class

FaceColorEffect is an effect that can render 3D models with specifying different color for each face (triangle) of the model. The face colors are provided with IFaceColorMaterial.
Inheritance Hierarchy
System.Object
  Ab3d.DirectX.DXResourceBase
    Ab3d.DirectX.SharedDXResource
      Ab3d.DirectX.SharedDXDeviceResource
        Ab3d.DirectX.Effect
          Ab3d.DirectX.Effects.FaceColorEffect

Namespace: Ab3d.DirectX.Effects
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.1.9105.2048 (1.0.0.0)
Syntax
C#
public class FaceColorEffect : Effect

The FaceColorEffect type exposes the following members.

Constructors
 NameDescription
Public methodFaceColorEffect Constructor
Top
Properties
 NameDescription
Public propertyRequiredInputLayoutType Gets the input layout that is required to render this effect.
(Overrides Effect.RequiredInputLayoutType)
Top
Methods
 NameDescription
Public methodApplyMaterial Applies the material and object's world matrix to this effect.
(Overrides Effect.ApplyMaterial(Material, RenderablePrimitiveBase))
Public methodPreloadShaders PreloadShaders can be called to load the shaders in advance before they are used. Calling this method increases the startup time, but when the 3D object needs to be shown, it is shown faster because all the shaders have already been created.
(Overrides Effect.PreloadShaders())
Top
Fields
 NameDescription
Public fieldStatic memberEffectName Effect name
Top
Remarks

FaceColorEffect is an effect that can render 3D models with specifying different color for each face (triangle) of the model.

The face colors are provided with IFaceColorMaterial.

FaceColorEffect does not support rendering shadows.

See Also