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 characters
#define moire_mitigation_factor 64.0 | |
#define warpX 0.031 | |
#define warpY 0.041 | |
// Convert from linear to sRGB. | |
//float Srgb(float c){return(c<0.0031308?c*12.92:1.055*pow(c,0.41666)-0.055);} | |
vec4 Srgb(vec4 c){return pow(c, vec4(1.0 / 2.2));} | |
// Convert from sRGB to linear. | |
//float Linear(float c){return(c<=0.04045)?c/12.92:pow((c+0.055)/1.055,2.4);} |