Skip to content
Public source code from Filmic Worlds, LLC.
C++ C
Branch: master
Clone or download

Latest commit

Latest commit 37de36e Apr 6, 2017


Type Name Latest commit message Commit time
Failed to load latest commit information.
FilmicCurve Minor fixes Apr 3, 2017
LICENSE.txt First checkin Mar 31, 2017 Update Apr 6, 2017


This github repo (fw-public) consists of shared code made available for use under the Creative Commons CCO license. This code is extracted from the Filmic Worlds, LLC codebase.

Filmic Tone Curve and Color Grading

The Filmic Tone Curve includes a filmic tonemapping curve using three segments of a power curve. The Filmic Color Grading include the tone curve as well as several operations for Exposure, Color Balance, Saturation, Contrast, and Lift/Gamma/Gain.


FilmicColorGrading::UserParams userParams; // User params are the input


FilmicColorGrading::RawParams rawParams; FilmicColorGrading::EvalParams evalParams; FilmicColorGrading::BakedParams bakeParams;

FilmicColorGrading::RawFromUserParams(rawParams, userParams); FilmicColorGrading::EvalFromRawParams(evalParams,rawParams); FilmicColorGrading::BakeFromEvalParams(bakeParams,evalParams,256,FilmicColorGrading::kTableSpacing_Quadratic);


Vec3 srcColor = ...;

Vec3 dstColor = bakeParams.Eval(srcColor);

You can’t perform that action at this time.