XRay |
public class XRayEffect : Effect
The XRayEffect type exposes the following members.
Name | Description | |
---|---|---|
XRayEffect | Constructor |
Name | Description | |
---|---|---|
Color | Gets or sets a Color4 that is used to render all 3D models when OverrideModelColor property is set to true. | |
OverrideBlendState | When set (is not null), then this effect will use this BlendState. | |
OverrideDepthStencilState | When set (is not null), then this effect will use this DepthStencilState. | |
OverrideFalloff | Gets or sets a float that can be used as a Falloff value of all objects rendered by this effect (instead of a Falloff value from XRayMaterial). When 0 (by default), then the Falloff value from XRayMaterial is used. | |
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 set (is not null), then this effect will use this RasterizerState. | |
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 |