RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Server CommandsGE UtilitiesGame Engine MainNavigation GraphScreenshot CaptureServerServer ConnectionSpawnpoint ManagerSimulation TimeVehicle SpawningSuspension Frequency Tester
Client CanvasCaustics PostFXChromatic Lens PostFXClient CoreDepth of Field PostFXEdge AA PostFXPostFx Flash EffectPostFx Fog EffectsPostFx FXAA Anti-AliasingGamma PostFXPostFx Glow EffectShadow Maps InitClient LightingPostFx Light Ray EffectAdvanced Lighting - Light VisualizationPostFx Masked Screen BlurMotion Blur PostFXObjects Required for StartupClient Parse ArgsClient PostFX ManagerRender ManagerAdvanced Lighting - ShadersBasic Lighting - Shadow FilterAdvanced Lighting - Shadow VisualizationPostFx SMAA Anti-AliasingPostFx SSAO (Screen-Space Ambient Occlusion)PostFx Turbulence EffectPostFx Utilities

UI

Resources

BeamNG Game Engine Lua Cheat SheetGE Developer RecipesMCP Server Setup

// RLS.STUDIOS=true

Premium Mods for BeamNG.drive. Career systems, custom vehicles, and immersive gameplay experiences.

Index

HomeProjectsPatreon

Socials

DiscordPatreon (RLS)Patreon (Vehicles)

© 2026 RLS Studios. All rights reserved.

Modding since 2024

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

PropertyValue
Sourcelua/ge/client/postFx/GammaPostFX.lua
Returns- (side-effect module)
DependenciesPFX_DefaultStateBlock, settings system

Scene Objects Created

ObjectTypeDescription
GammaShaderShaderDatagammaP.hlsl vertex + pixel shader
GammaStateBlockGFXStateBlockDataInherits PFX_DefaultStateBlock, dual linear samplers
GammaPostFXPostEffectGamma + color correction, renders AfterPostFX at priority 9999

Globals Set

GlobalTypeDescription
GammaPostFXCallbackstablepreProcess 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

PropertyValue
Render TimePFXBeforeBin
Render BinAfterPostFX
Priority9999 (last effect)
Reflect PassDisabled
Texture 0$backBuffer
Texture 1$HDRPostFX::colorCorrectionRamp
Texture 2$HDRPostFX::colorCorrectionRampDefault

Console Variables Used

VariablePurpose
$HDRPostFX::colorCorrectionRampColor LUT ramp texture path
$HDRPostFX::colorCorrectionRampDefaultDefault LUT ramp

Settings Used

KeyPurpose
GraphicGammaUser gamma value (clamped 0.001–2.2)

Notes

  • Disabled by default (isEnabled = false).
  • Renders as the very last PostFX due to priority 9999 and AfterPostFX bin.
  • 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.

On this page

Module OverviewScene Objects CreatedGlobals SetCallbacksGammaPostFXCallbacks.preProcess()GammaPostFXCallbacks.setShaderConsts()PostEffect ConfigurationConsole Variables UsedSettings UsedNotesSee Also