---
id: "hable-filmic-tonemapping"
title: "Hable filmic (Uncharted 2) tonemapping"
aliases: [Uncharted 2 tonemapper, filmic curve]
domain: "post"
stage: "post"
realtime: "realtime"
platforms: [webgl2, webgpu, desktop-gpu, mobile-gpu, unity, unreal]
year_introduced: 2010
inputs: [hdr-image]
outputs: [ldr-image]
style: "photoreal"
dynamic: "both"
cost: "cheap"
authority: "Hable"
url: "https://texelatlas.vercel.app/t/hable-filmic-tonemapping/"
sources_verified_at: "2026-11-29"
---
# Hable filmic (Uncharted 2) tonemapping (Hable)

> A parametric filmic curve from Uncharted 2 with separate toe, linear and shoulder terms. It gives contrasty blacks and a soft highlight roll-off, and is easy to tune by hand.

## Reach for it when

- hdr image looks washed out with flat blacks
- want contrasty filmic look i can tune by hand
- highlights clip harshly to white
- need a simple tweakable shoulder and toe curve

## How it works

The curve is a rational function ((x(Ax+CB)+DE)/(x(Ax+B)+DF)) - E/F with six constants controlling shoulder strength, linear strength, linear angle, toe strength, toe numerator and toe denominator. The input is scaled by an exposure bias, passed through the function, and divided by the same function evaluated at a linear white point so that white maps to 1. It is applied per channel in the shader, then gamma encoded. The toe crushes dark values for a film-like black, the linear section keeps mid-tones close to proportional, and the shoulder compresses highlights gradually. Because the constants are explicit, artists can re-fit the curve to a target look.

## When to use it

Choose it when you want a simple filmic curve you can tune by hand with no matrices or LUTs.

Prefer [ACES filmic tonemapping](https://texelatlas.vercel.app/t/aces-tonemapping.md) for an industry-standard look, [AgX](https://texelatlas.vercel.app/t/agx-tonemapping.md) for hue stability, and [Reinhard photographic tone reproduction](https://texelatlas.vercel.app/t/reinhard-tonemapping.md) for the least contrast. Hable's curve skews hue like ACES because it runs per channel.

## Cost

cheap — One rational function per channel.
Measured GPU Weight: 1.28× baseline (feather) — 0.042 ms median / 0.0445 ms p95 on Tesla T4/PCIe/SSE2 @ 1920x1080 (opengl-timer-query).
Ada L4 scaling: 1.03× baseline (feather) — 0.0163 ms median (2.58× faster on L4).
Ampere A100 scaling: 1× baseline (feather) — 0.0288 ms median (1.46× faster on A100).

## Failure modes

- Per-channel hue skew and desaturation of saturated highlights
- Constants are scene-dependent: the white point and exposure bias need re-tuning
- Crushed blacks when exposure is low
- Colours differ from authored albedo, unlike a neutral mapper

## Engine support

- babylonjs: builtin — `new BABYLON.TonemapPostProcess('t', BABYLON.TonemappingOperator.Hable, exposure, camera)` (evidence: https://github.com/BabylonJS/Babylon.js/blob/9.38.0/packages/dev/core/src/PostProcesses/thinTonemapPostProcess.ts, checked 2026-12-01)
- godot: builtin — `Environment.tonemap_mode = Environment.TONE_MAPPER_FILMIC (Hable Uncharted 2 filmic curve in tonemap.glsl)` (evidence: https://github.com/godotengine/godot/blob/4.7.2-stable/doc/classes/Environment.xml, checked 2026-12-01)
- unity: builtin — `Volume > Add Override > Post-processing > Tonemapping > Mode = Neutral` (evidence: https://github.com/Unity-Technologies/Graphics/blob/557f6ac22b948284f57ffae6a789751fd1f63620/Packages/com.unity.render-pipelines.core/ShaderLibrary/Color.hlsl, checked 2026-12-01) — Neutral mode is built on a Hable/Hejl/Frostbite curve, not the exact Uncharted 2 operator.

## Dataflow

- Inputs: hdr-image
- Outputs: ldr-image
- Platforms: webgl2, webgpu, desktop-gpu, mobile-gpu, unity, unreal

## Presets

### Filmic curve visualised against Reinhard and clamp (glsl-fragment; rendered 2026-11-29)

```json
{
  "A": 0.15,
  "B": 0.5,
  "C": 0.1,
  "D": 0.2,
  "E": 0.02,
  "F": 0.3,
  "W": 11.2,
  "EXPOSURE_BIAS": 2
}
```

```glsl
// GLSL ES 3.0, Shadertoy-style
// Plots Hable filmic, Reinhard and linear clamp for scene values 0..8.
const float A = 0.15, B = 0.50, C = 0.10, D = 0.20, E = 0.02, F = 0.30;
const float W = 11.2;
const float EXPOSURE_BIAS = 2.0;
const float X_MAX = 8.0;

float hable(float x) {
    return ((x * (A * x + C * B) + D * E) / (x * (A * x + B) + D * F)) - E / F;
}
float filmic(float x) { return hable(EXPOSURE_BIAS * x) / hable(W); }
float reinhard(float x) { return x / (1.0 + x); }

float line(float y, float f, float w) {
    return smoothstep(w, w * 0.4, abs(y - f));
}

void mainImage(out vec4 fragColor, in vec2 fragCoord) {
    vec2 uv = fragCoord / iResolution.xy;
    float x = uv.x * X_MAX;
    vec3 col = vec3(0.07, 0.08, 0.10);
    // grid
    float gx = abs(fract(uv.x * X_MAX) - 0.5);
    float gy = abs(fract(uv.y * 5.0) - 0.5);
    col += 0.05 * smoothstep(0.47, 0.5, max(gx, gy));
    // curves in the upper part, gradient strip below
    float cy = (uv.y - 0.18) / 0.82;
    if (uv.y > 0.18) {
        col = mix(col, vec3(0.9), line(cy, min(x, 1.0), 0.008));
        col = mix(col, vec3(0.2, 0.7, 1.0), line(cy, reinhard(x), 0.008));
        col = mix(col, vec3(1.0, 0.55, 0.15), line(cy, filmic(x), 0.010));
    } else if (uv.y > 0.09) {
        float v = filmic(x);
        col = vec3(pow(clamp(v, 0.0, 1.0), 1.0 / 2.2));
    } else {
        col = vec3(pow(clamp(x, 0.0, 1.0), 1.0 / 2.2));
    }
    fragColor = vec4(col, 1.0);
}

```

Attribution: written for this index; constants are the published ones from the primary source (0)

## Lineage

- extends [Reinhard photographic tone reproduction](https://texelatlas.vercel.app/t/reinhard-tonemapping.md)
- extended by [ACES filmic tonemapping](https://texelatlas.vercel.app/t/aces-tonemapping.md)

## Combines with

- [3D LUT color grading](https://texelatlas.vercel.app/t/lut-color-grading.md): Tonemap first, then grade the LDR result with a LUT.

## Sources

1. [primary] John Hable Filmic Tonemapping Operators. filmicworlds.com. https://filmicworlds.com/blog/filmic-tonemapping-operators (verified via http on 2026-11-29)
2. [implementation] dmnsgn (2019) dmnsgn/shaders-tone-map. https://github.com/dmnsgn/shaders-tone-map License: MIT. (verified via github on 2026-11-29)

## Cite this entry

Texel. "Hable filmic (Uncharted 2) tonemapping." https://texelatlas.vercel.app/t/hable-filmic-tonemapping/ (accessed 2026-12-01).
