Created
August 7, 2017 08:53
-
-
Save tomaka/0ef19530fdbf6a1d30ebf9c0bcd0df72 to your computer and use it in GitHub Desktop.
Revisions
-
tomaka created this gist
Aug 7, 2017 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ vec3 srgb_to_linear(vec3 c) { return mix(c / 12.92, pow((c + 0.055) / 1.055, vec3(2.4)), step(0.04045, c)); }