Guides Lighting Post Processing Post-Processing Profile File Format

Lighting Post Processing 1 min read Updated Nov 2026

Post-Processing Profile File Format

Lenga stores post-processing settings in three places: the profile file, the scene file and the Camera component in the scene file.

What File Key
A profile's effects <Name>.postprocessing.json the whole document
A scene's profile the scene file postProcessingProfilePath in the scene object
A camera's switch the scene file postProcessing on the Camera component

The editor writes all three. Use the editor for normal work. This page is for reading the files in version control and for writing them with your own tools.

The project's Color Space has its own key in the project settings; see Choose the color space.

The Profile File

File Name

A profile's file name ends in .postprocessing.json. The editor recognises a profile by that suffix.

Document

The document is a JSON object. A postProcessing object makes it a profile and holds its name and version. Each effect is an object beside it.

Key Type Holds
postProcessing object name (string) and version (whole number, 1 or more, default 1). Required.
tonemapping object Tonemapping
colorAdjustments object Color Adjustments
bloom object Bloom
vignette object Vignette
filmGrain object Film Grain
chromaticAberration object Chromatic Aberration
lensFlare object Lens Flare
peripheralWarp object Peripheral Warp

Every field of every effect, with its range and default, is in the Post-processing effects reference.

Complete Example

Every key Lenga reads and writes, with each effect enabled:

{
  "postProcessing": {
    "name": "Dusk",
    "version": 1
  },
  "tonemapping": {
    "enabled": true,
    "mode": "ACES"
  },
  "colorAdjustments": {
    "enabled": true,
    "postExposure": 0.5,
    "contrast": 20,
    "saturation": -30,
    "colorFilter": "#FFCC99"
  },
  "bloom": {
    "enabled": true,
    "threshold": 1.1,
    "intensity": 0.8,
    "scatter": 0.6,
    "tint": "#80FF80",
    "clamp": 100,
    "maxIterations": 4,
    "downscale": "Quarter",
    "highQualityFiltering": true
  },
  "vignette": {
    "enabled": true,
    "color": "#102030",
    "center": { "x": 0.25, "y": 0.75 },
    "intensity": 0.45,
    "smoothness": 0.3,
    "rounded": true
  },
  "filmGrain": {
    "enabled": true,
    "intensity": 0.35,
    "response": 0.6
  },
  "chromaticAberration": {
    "enabled": true,
    "intensity": 0.2
  },
  "lensFlare": {
    "enabled": true,
    "intensity": 1.5,
    "ghostCount": 5,
    "ghostSpacing": 0.4,
    "haloRadius": 0.35,
    "chromaticSpread": 0.02
  },
  "peripheralWarp": {
    "enabled": true,
    "intensity": 0.6,
    "safeRadius": 0.66,
    "smoothness": 0.34,
    "rippleAmplitude": 0.018,
    "rippleFrequency": 7,
    "phase": 0,
    "chromaticSeparation": 0.012,
    "outerTint": "#C88CFF",
    "innerTint": "#96FFD4"
  }
}

A New Profile

A profile the editor creates has every effect disabled at its default values. These are the values of a new profile, in the order the Inspector shows them:

{
  "postProcessing": {
    "name": "NewPostProcessingProfile",
    "version": 1
  },
  "tonemapping": {
    "enabled": false,
    "mode": "None"
  },
  "colorAdjustments": {
    "enabled": false,
    "postExposure": 0,
    "contrast": 0,
    "saturation": 0,
    "colorFilter": "#FFFFFF"
  },
  "bloom": {
    "enabled": false,
    "threshold": 0.9,
    "intensity": 0,
    "scatter": 0.7,
    "tint": "#FFFFFF",
    "clamp": 65472,
    "maxIterations": 6,
    "downscale": "Half",
    "highQualityFiltering": false
  },
  "vignette": {
    "enabled": false,
    "color": "#000000",
    "center": { "x": 0.5, "y": 0.5 },
    "intensity": 0,
    "smoothness": 0.2,
    "rounded": false
  },
  "filmGrain": {
    "enabled": false,
    "intensity": 0,
    "response": 0.8
  },
  "chromaticAberration": {
    "enabled": false,
    "intensity": 0
  },
  "lensFlare": {
    "enabled": false,
    "intensity": 0,
    "ghostCount": 4,
    "ghostSpacing": 0.3,
    "haloRadius": 0.4,
    "chromaticSpread": 0.01
  },
  "peripheralWarp": {
    "enabled": false,
    "intensity": 0,
    "safeRadius": 0.66,
    "smoothness": 0.34,
    "rippleAmplitude": 0.018,
    "rippleFrequency": 7,
    "phase": 0,
    "chromaticSeparation": 0.012,
    "outerTint": "#C88CFF",
    "innerTint": "#96FFD4"
  }
}

How Lenga Reads a Profile

  • A document that is not an object, or has no postProcessing object, is not a profile. The scene is drawn without effects and a warning is logged.
  • A missing effect object, and a missing value inside one, takes its default. { "postProcessing": {} } is a profile with every effect disabled.
  • A value of the wrong JSON type takes its default.
  • A number outside its range is moved to the nearest end of the range.
  • A missing name reads as Post Processing. A version below 1 reads as 1.
  • Colors are strings of the form #RRGGBB or #RRGGBBAA. Any other string takes the field's default.
  • mode is None, Neutral or ACES, with that capitalisation. Any other string reads as None.
  • downscale is Half or Quarter. Any other string reads as Half.

How the Editor Writes a Profile

The editor writes every effect and every value each time it saves a profile, including effects that are disabled.

  • Keys are written in alphabetical order, so bloom comes first and postProcessing sits between lensFlare and tonemapping.
  • Numbers are held as 32-bit floats and written with all their digits. The default Threshold of 0.9 is written as 0.8999999761581421 and the default Scatter of 0.7 as 0.699999988079071. Both read back as the same values, and the Inspector shows them as 0.90 and 0.70.
  • An opaque color is written as #RRGGBB.

Scene: postProcessingProfilePath

A scene names its profile in the scene object of the scene file, beside skyboxPath. The value is the profile's path from the project folder:

{
  "scene": {
    "name": "Main",
    "postProcessingProfilePath": "Assets/Rendering/Dusk.postprocessing.json"
  }
}

A scene with no key, or an empty string, has no profile. Picking None in the editor removes the key.

When the path names a file that is missing or is not a profile, the scene is drawn without effects and one warning is logged for that path.

Camera Component: postProcessing

The Camera component's Post Processing checkbox is a boolean on the component:

{
  "type": "Camera",
  "primary": true,
  "projection": "Perspective",
  "postProcessing": true
}

A Camera component with no postProcessing key, or with a value that is not a boolean, has post-processing on.