API ReferenceGE ExtensionsClient
Gamma PostFX
Gamma correction post-processing effect with color correction ramp support.
Gamma correction post-processing effect with color correction ramp support.
Module Overview
| Property | Value |
|---|---|
| Source | lua/ge/client/postFx/GammaPostFX.lua |
| Returns | - (side-effect module) |
| Dependencies | PFX_DefaultStateBlock, settings system |
Scene Objects Created
| Object | Type | Description |
|---|---|---|
GammaShader | ShaderData | gammaP.hlsl vertex + pixel shader |
GammaStateBlock | GFXStateBlockData | Inherits PFX_DefaultStateBlock, dual linear samplers |
GammaPostFX | PostEffect | Gamma + color correction, renders AfterPostFX at priority 9999 |
Globals Set
| Global | Type | Description |
|---|---|---|
GammaPostFXCallbacks | table | preProcess and setShaderConsts callbacks |
Callbacks
GammaPostFXCallbacks.preProcess()
Updates texture slot 1 with the current $HDRPostFX::colorCorrectionRamp if it has changed.
GammaPostFXCallbacks.setShaderConsts()
Sets $OneOverGamma shader constant from GraphicGamma setting (clamped 0.001–2.2).
PostEffect Configuration
| Property | Value |
|---|---|
| Render Time | PFXBeforeBin |
| Render Bin | AfterPostFX |
| Priority | 9999 (last effect) |
| Reflect Pass | Disabled |
| Texture 0 | $backBuffer |
| Texture 1 | $HDRPostFX::colorCorrectionRamp |
| Texture 2 | $HDRPostFX::colorCorrectionRampDefault |
Console Variables Used
| Variable | Purpose |
|---|---|
$HDRPostFX::colorCorrectionRamp | Color LUT ramp texture path |
$HDRPostFX::colorCorrectionRampDefault | Default LUT ramp |
Settings Used
| Key | Purpose |
|---|---|
GraphicGamma | User gamma value (clamped 0.001–2.2) |
Notes
- Disabled by default (
isEnabled = false). - Renders as the very last PostFX due to priority 9999 and
AfterPostFXbin. - The gamma formula applied is
1.0 / clampedGamma.
See Also
- client/postFx - PostFX manager
PostFx FXAA Anti-Aliasing
NVIDIA FXAA 3.11 (Fast Approximate Anti-Aliasing) post-processing effect by Timothy Lottes. Provides edge-smoothing as an alternative to SMAA.
PostFx Glow Effect
Multi-pass glow/bloom post-processing effect using Gaussian blur. Downsamples the glow buffer, applies vertical and horizontal blur passes, then composites back with additive blending.