Click or drag to resize
AB4D logo

NormalDepthEffect Class

NormalDepthEffect effect renders the geometry by saving the Normal vector and depth to the buffer with the following supported formats: B8G8R8A8_UNorm (normal and depth are normalized to 0 ... 255), R16G16B16A16_Float or R32G32B32A32_Float (actual normals and depth values are stored).
Inheritance Hierarchy
SystemObject
  Ab3d.DirectXDXResourceBase
    Ab3d.DirectXSharedDXResource
      Ab3d.DirectXSharedDXDeviceResource
        Ab3d.DirectXEffect
          Ab3d.DirectX.EffectsNormalDepthEffect

Namespace: Ab3d.DirectX.Effects
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
Syntax
C#
public class NormalDepthEffect : Effect

The NormalDepthEffect type exposes the following members.

Constructors
 NameDescription
Public methodNormalDepthEffect Constructor
Top
Properties
 NameDescription
Public propertyNormalizeValues 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.
Public propertyRequiredInputLayoutType Gets the input layout that is required to render this effect.
(Overrides EffectRequiredInputLayoutType)
Public propertyTransformNormalsToViewSpace 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.
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
See Also