Last active
January 29, 2017 21:04
-
-
Save PopupAsylum/92b912ab849dd8fcdb60a10bee28a51b to your computer and use it in GitHub Desktop.
Applies the exposure of Exposure.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Apply exposure | |
o.vColor.rgb *= _PA_Exposure; | |
//Uncharted 2 tonemapping curve http://filmicgames.com/archives/75 | |
o.vColor.rgb =((o.vColor.rgb*(0.15*o.vColor.rgb + 0.10*0.50) + 0.20*0.02) / (o.vColor.rgb*(0.15*o.vColor.rgb + 0.50) + 0.20*0.30)) - 0.02 / 0.30; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment