Click or drag to resize
AB4D logo

NormalDepthEdgeDetectionPostProcessing Class

SoberEdgeDetectionPostProcess is a post process that can be used to find the edges of the object.
Inheritance Hierarchy
SystemObject
  Ab3d.DirectXDXResourceBase
    Ab3d.DirectXSharedDXResource
      Ab3d.DirectXSharedDXDeviceResource
        Ab3d.DirectX.PostProcessingPostProcessBase
          Ab3d.DirectX.PostProcessingStandardPostProcess
            Ab3d.DirectX.PostProcessingSimplePixelShaderPostProcess
              Ab3d.DirectX.PostProcessingNormalDepthEdgeDetectionPostProcessing

Namespace: Ab3d.DirectX.PostProcessing
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
Syntax
C#
public class NormalDepthEdgeDetectionPostProcessing : SimplePixelShaderPostProcess

The NormalDepthEdgeDetectionPostProcessing type exposes the following members.

Constructors
 NameDescription
Public methodNormalDepthEdgeDetectionPostProcessing Initializes a new instance of the SoberEdgeDetectionPostProcess class.
Top
Properties
 NameDescription
Public propertyDepthThreshold Depth threshold - the value that specifies how big the depth change between checked pixels must be to form an edge. Smaller value define more edges. Value 1 means the whole depth range from near camera plane to far camera plane. Default value is 0.01.
Public propertyDistance Distance defines how many pixels away from the center pixel the edge detection effect will check. Bigger values create thicker edges. Default value is 1.
Public propertyMultiplyWithCurrentColor Gets or sets a Boolean value that specifies if the edge color defined by this post-process is multiplied with the existing pixel color - this way the edges are added to the existing rendering. When false then only the edges are preserved and the original rendering is not visible any more. Default value is true.
Public propertyNormalThreshold Normal threshold - the value that specifies how big the normal change must be to form an edge. Bigger value requires bigger normal change to define the edge and therefore produce less edges. Default value is 0.3.
Public propertyTextureSize Gets or sets the size of the texture.
Top
Methods
 NameDescription
Public methodRender Render renders the post process with using the sourceShaderResourceView as the source texture. It rendered the output to the CurrentRenderTargetView defined in the renderingContext.
(Overrides SimplePixelShaderPostProcessRender(RenderingContext, ShaderResourceView))
Top
Fields
 NameDescription
Public fieldNormalDepthShaderResourceView ShaderResourceView of the normal-depth texture.
Top
See Also