Click or drag to resize
AB4D logo

GammaCorrectionPostProcess Class

GammaCorrectionPostProcess is a post process that can apply a custom gamma correction to the rendered image.
The following operation is executed in the shader: finalColor = float4(pow(color.rgb, 1.0 / Gamma), color.a)
Inheritance Hierarchy
SystemObject
  Ab3d.DirectXDXResourceBase
    Ab3d.DirectXSharedDXResource
      Ab3d.DirectXSharedDXDeviceResource
        Ab3d.DirectX.PostProcessingPostProcessBase
          Ab3d.DirectX.PostProcessingStandardPostProcess
            Ab3d.DirectX.PostProcessingSimplePixelShaderPostProcess
              Ab3d.DirectX.PostProcessingGammaCorrectionPostProcess

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

The GammaCorrectionPostProcess type exposes the following members.

Constructors
 NameDescription
Public methodGammaCorrectionPostProcess Initializes a new instance of the GammaCorrectionPostProcess class.
Top
Properties
 NameDescription
Public propertyGamma Gamma value (2.2 by default)
Top
See Also