Skip to content

Instantly share code, notes, and snippets.

View da-molchanov's full-sized avatar

Dmitry Molchanov da-molchanov

View GitHub Profile
@da-molchanov
da-molchanov / ue4_aces_tonemapping.hlsl
Last active December 23, 2023 16:29
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 =