Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Applies the exposure of Exposure.cs
//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