Normal |
public class NormalDepthEdgeDetectionPostProcessing : SimplePixelShaderPostProcess
The NormalDepthEdgeDetectionPostProcessing type exposes the following members.
Name | Description | |
---|---|---|
NormalDepthEdgeDetectionPostProcessing | Initializes a new instance of the SoberEdgeDetectionPostProcess class. |
Name | Description | |
---|---|---|
DepthThreshold | 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. | |
Distance | 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. | |
MultiplyWithCurrentColor | 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. | |
NormalThreshold | 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. | |
TextureSize | Gets or sets the size of the texture. |
Name | Description | |
---|---|---|
Render |
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)) |
Name | Description | |
---|---|---|
NormalDepthShaderResourceView | ShaderResourceView of the normal-depth texture. |