Skip to content

Instantly share code, notes, and snippets.

@PopupAsylum
Last active January 29, 2017 21:04
Show Gist options
  • Save PopupAsylum/92b912ab849dd8fcdb60a10bee28a51b to your computer and use it in GitHub Desktop.
Save PopupAsylum/92b912ab849dd8fcdb60a10bee28a51b to your computer and use it in GitHub Desktop.
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