Skip to content

Instantly share code, notes, and snippets.

Krzysztof Narkowicz knarkowicz

Block or report user

Report or block knarkowicz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ACESFitting.cpp
// Mostly code from https://github.com/ampas/aces-dev
Vec3 ACES_RRT( Vec3 aces )
{
// --- Glow module --- //
float saturation = rgb_2_saturation( aces);
float ycIn = rgb_2_yc( aces);
float s = sigmoid_shaper( (saturation - 0.4f) / 0.2f);
float addedGlow = 1.0f + glow_fwd( ycIn, RRT_GLOW_GAIN * s, RRT_GLOW_MID);
You can’t perform that action at this time.