Click or drag to resize
AB4D logo

VertexColorEffect Class

VertexColorEffect is an effect that can render 3D models with specifying different color for each models vertex (position). The vertex colors are provided with IVertexColorMaterial.
Inheritance Hierarchy
SystemObject
  Ab3d.DirectXDXResourceBase
    Ab3d.DirectXSharedDXResource
      Ab3d.DirectXSharedDXDeviceResource
        Ab3d.DirectXEffect
          Ab3d.DirectX.EffectsVertexColorEffect

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

The VertexColorEffect type exposes the following members.

Constructors
 NameDescription
Public methodVertexColorEffect Constructor
Top
Properties
 NameDescription
Public propertyRequiredInputLayoutType Gets the input layout that is required to render this effect.
(Overrides EffectRequiredInputLayoutType)
Top
Methods
 NameDescription
Public methodApplyMaterial Applies the material and object's world matrix to this effect.
(Overrides EffectApplyMaterial(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 EffectPreloadShaders)
Top
Fields
 NameDescription
Public fieldStatic memberEffectName Effect name
Top
Remarks

VertexColorEffect is an effect that can render 3D models with specifying different color for each models vertex (position).

The vertex colors are provided with IVertexColorMaterial.

VertexColorEffect support only ambient light and up to three directional lights. It does not support point or spot lights.

See Also