Solid |
public class SolidColorEffect : Effect
The SolidColorEffect type exposes the following members.
Name | Description | |
---|---|---|
SolidColorEffect | Constructor |
Name | Description | |
---|---|---|
AddAmbientColor | When true then ambient light color is added to the color. False by default. | |
Color | Gets or sets a Color4 that is used to render all 3D models when OverrideModelColor property is set to true. | |
DepthBias | A DepthBias is a value that specifies how much the line is moved closer to the camera. The value is specified in world coordinates. Default value is 0. | |
OutlineThickness | Gets or sets a float that specifies the thickness of the outline that is created with expanding the objects in the direction of the normal. The value is specified in screen-space units. Default value is 0 that does not produce any outline. | |
OverrideBlendState | When OverrideBlendState is set then SolidColorEffect will use that blend state. When null (by default) then Opaque blend state is used when Alpha is 1, and PremultipliedAlphaBlend is used when Alpha is less then 1 (in this case the color components are also multiplied with alpha value to produce pre-multiplied colors). | |
OverrideModelColor | When true then the Color is used to render all the 3D models. When false (by default) the color defined in the model's material is used. | |
OverrideRasterizerState | When OverrideRasterizerState is set then SolidColorEffect will use this rasterizer state, for example to disable object culling use CullNone. When null (by default) then back-face or front-face culling is used based on the geometry and material. | |
PremultiplyAlphaColors | When PremultiplyAlphaColors is true (by default) and Alpha is less then 1, then the color components are also multiplied with alpha value to produce pre-multiplied colors. | |
RequiredInputLayoutType |
Gets the input layout that is required to render this effect.
(Overrides EffectRequiredInputLayoutType) | |
WriteMaxDepthValue | When true then the models are rendered to the back of the scene so that all other rendered objects will be rendered before them. This can be used to outline all selected objects without rendering selection lines between them. When false (by default) the models are rendered to their correct depth. |
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 |