ProcessParameters

Description

sealed class Tinman.Engine.Rendering.Effects.ProcessParameters

Derived from

RenderEffectParameters abstract

Render effect parameters for IProcessEffect.

The following low-level render effect parameter slots are always defined:

Public / Constants

Changed​Input​A


public constant ChangedInputA → (1 << 0:int32)

Changed flag for InputA.

Changed​Input​B


public constant ChangedInputB → (1 << 1:int32)

Changed flag for InputB.

Changed​Offset


public constant ChangedOffset → (1 << 2:int32)

Changed flag for Offset.

Pass​Blur


public constant PassBlur → (0:int32)

Render effect pass for blurring a texture map.

The following parameters must be specified for this pass:

  • InputA :
    The texture to blur with a 1x7 / 7x1 Gaussian filter kernel

  • Offset :
    The texture coordinate offset along the blur axis that corresponds to one texel, i.e. (1/w,0) or (0,1/h), where w and h are the texture width and height.

Pass​Transparency


public constant PassTransparency → (1:int32)

Render effect pass for applying accumulated transparency.

The following parameters must be specified for this pass:

  • InputA :
    The first accumulation buffer.

  • InputB :
    The second accumulation buffer.

  • Offset :
    The pixel offset (1/w,1/h), where w and h are the viewport width and height, in pixels.

Weighted Blended Order-Independent Transparency
Journal of Computer Graphics Techniques Vol. 2, No. 2, 2013
Listing 4. Our New Method for Platforms without Per-Render Target Blending

Public / Constructors

Process​Parameters


public constructor ProcessParameters → ()

Creates a new instance of ProcessParameters.

Public / Attributes

Input​A


public attribute InputA → (get,set)

value : ITexture2D

The input texture.

The first input texture.

Defaults to null.

Input​B


public attribute InputB → (get,set)

value : ITexture2D

The input texture.

The second input texture.

Defaults to null.

Offset


public attribute Offset → (get,set)

value : Vec2F

The offset vector.

Texture coordinate offset for InputA.

Defaults to Vec2F.Zero.