Normal |
public class NormalDepthEffect : Effect
The NormalDepthEffect type exposes the following members.
Name | Description | |
---|---|---|
NormalDepthEffect | Constructor |
Name | Description | |
---|---|---|
CustomFarPlaneDistance | When zero (by default), then camera's FarPlaneDistance is used instead of this value. | |
NormalizeValues | Gets or sets a nullable Boolean value that when set specifies if normal and depth values are normalized to range from 0 to 1 (can be stored in UNORM format). When false, then actual normal vectors are preserved and actual linear depth value is use (in range from 0 to FarPlaneDistance). This requires FLOAT format. When not set (by default), then currently bind back buffer format is checked and if FLOAT format is used, then actual values are used. | |
RequiredInputLayoutType |
Gets the input layout that is required to render this effect.
(Overrides EffectRequiredInputLayoutType) | |
TransformNormalsToViewSpace | Gets or sets a Boolean that specifies if normals are transformed into view space (multiplied by View matrix). This is used for Screen Space Ambient Occlusion (SSAO). False by default. |
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 |