Vertex |
public class VertexColorEffect : Effect
The VertexColorEffect type exposes the following members.
Name | Description | |
---|---|---|
VertexColorEffect | Constructor |
Name | Description | |
---|---|---|
RequiredInputLayoutType |
Gets the input layout that is required to render this effect.
(Overrides EffectRequiredInputLayoutType) |
Name | Description | |
---|---|---|
ApplyMaterial |
Applies the material and object's world matrix to this effect.
(Overrides EffectApplyMaterial(Material, RenderablePrimitiveBase)) | |
PreloadShaders |
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) |
Name | Description | |
---|---|---|
EffectName | Effect name |
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.