Skip to content

Instantly share code, notes, and snippets.

@da-molchanov
da-molchanov / ue4_aces_tonemapping.hlsl
Last active December 1, 2025 09:04
Simple custom ACES tonemapper that approximates the default UE4 filmic tonemapper in 11 instructions.
// Copyright 2021 Dmitry Molchanov and Julia Molchanova
// This code is licensed under the MIT license
// Output type: CMOT float 3
// Input name: LinearColor
// This multiplier corresponds to "ExposureCompensation=1" and disabled auto exposure
const float ExposureMultiplier = 1.4;
const float3x3 PRE_TONEMAPPING_TRANSFORM =