Guest User

Untitled

a guest
Jan 22nd, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. avgLum = average scene luminance;
  2. static const float MIDDLE_GREY = 0.72f;  /// WHY IS THIS 0.72????????  I HATE MAJIK NUMBERS :)
  3. newCol = (MIDDLE_GREY / avgLum) * pxColor;
  4. static const float L_WHITE = 1.5f; // I assume this is just our max value before it's pure white
  5. newCol = newCol * (1.0f + newCol / L_WHITE) / (1.0f + newCol);
Add Comment
Please, Sign In to add comment