Click or drag to resize
AB4D logo

ExpandPostProcess Class

ExpandPostProcess renders an outline in a two pass (horizontal and vertical) post process.
Inheritance Hierarchy
SystemObject
  Ab3d.DirectXDXResourceBase
    Ab3d.DirectXSharedDXResource
      Ab3d.DirectXSharedDXDeviceResource
        Ab3d.DirectX.PostProcessingPostProcessBase
          Ab3d.DirectX.PostProcessingStandardPostProcess
            Ab3d.DirectX.PostProcessingSimplePixelShaderPostProcess
              Ab3d.DirectX.PostProcessingExpandPostProcess

Namespace: Ab3d.DirectX.PostProcessing
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.1.9105.2048 (1.0.0.0)
Syntax
C#
public class ExpandPostProcess : SimplePixelShaderPostProcess

The ExpandPostProcess type exposes the following members.

Constructors
 NameDescription
Public methodExpandPostProcess Initializes a new instance of the ExpandPostProcess class.
Top
Properties
 NameDescription
Public propertyBackgroundColor The color of the background - only colors that are not the same as background will be expanded.
Public propertyExpansionWidth Gets or sets the width of the expansion (the distance in pixels that are checked away from the current pixel). ExpansionWidth values can be between 1 (zero is not allowed) and 16 (ExpandPostProcess.MaxExpansionWidth). Bigger numbers mean that more pixels will be sampled in pixel shader and will therefore require more time to execute the post process.
Public propertyFactors Gets or sets a Vector4 that specifies RGBA values that are multiplied with each rendered pixel. Default value is (1, 1, 1, 1)
Public propertyIsVerticalRenderingPass Gets or sets a boolean that specifies if vertical rendering pass is applied. if false than horizontal rendering pass is applied. Note that in order to get full expand effect then two ExpandPostProcess must be used - one with horizontal and one with vertical rendering pass.
Public propertyOffsets Gets or sets a Vector4 that specifies RGBA values that are added to each rendered pixel. Default value is (0, 0, 0, 0)
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 fieldStatic memberDefaultFactors Default Factors value
Public fieldStatic memberDefaultOffsets Default Offsets value
Public fieldStatic memberMaxExpansionWidth Max value for ExpansionWidth.
Top
See Also