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

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.

NVIDIA FXAA 3.11 (Fast Approximate Anti-Aliasing) post-processing effect by Timothy Lottes. Provides edge-smoothing as an alternative to SMAA.


Overview

Declarative setup script (no M module). Registers:

  • FXAA_StateBlock - Clamp-linear sampler state
  • FXAA_ShaderData - Vertex/pixel shader pair for FXAA
  • FXAA_PostEffect - PostEffect (disabled by default, renders after diffuse)
  • FXAA_PostEffectCallbacks - Disables SMAA when FXAA is enabled

Scene Objects

ObjectTypeDefault EnabledDescription
FXAA_PostEffectPostEffectfalseFXAA anti-aliasing pass
FXAA_StateBlockGFXStateBlockData-Linear clamp sampler for color texture
FXAA_ShaderDataShaderData-FXAA 3.11 shader implementation

Global Callbacks

GlobalCallbackDescription
FXAA_PostEffectCallbacksonEnabled()Disables SMAA_PostEffect to prevent dual AA

Mutual Exclusion

FXAA and SMAA are mutually exclusive. Enabling one disables the other:

-- When FXAA is enabled, SMAA gets disabled
fxaa_PostEffectCallbacks.onEnabled = function()
  local smaa_postfx = scenetree.findObject("SMAA_PostEffect")
  if smaa_postfx then
    smaa_postfx:disable()
  end
  return true
end

Pipeline

$backBuffer → FXAA_ShaderData → $backBuffer

The effect reads from and writes back to the back buffer in a single pass.


Notes

  • Shader pixel version 5.0
  • Reflection passes excluded (allowReflectPass = false)
  • Internal quality/performance settings can be tuned in shaders/common/postFx/fxaa/fxaaP.hlsl
  • Based on Timothy Lottes' FXAA blog

See Also

  • PostFx SMAA - Alternative anti-aliasing (mutually exclusive)
  • PostFx Utils - Preset management

PostFx Fog Effects

Atmospheric fog and underwater fog post-processing effects. Creates two independent PostEffect chains for above-water and underwater fog rendering.

Gamma PostFX

Gamma correction post-processing effect with color correction ramp support.

On this page

OverviewScene ObjectsGlobal CallbacksMutual ExclusionPipelineNotesSee Also