playcanvas
Version:
PlayCanvas WebGL game engine
3 lines (2 loc) • 845 B
TypeScript
declare const _default: "\n\n#include \"tonemappingPS\"\n\n#if TONEMAP != NONE\n #if GAMMA == SRGB\n #include \"decodePS\"\n #include \"gamma2_2PS\"\n #else\n #include \"gamma1_0PS\"\n #endif\n#endif\n\n// prepare the output color for the given gamma-space color\nvec3 prepareOutputFromGamma(vec3 gammaColor) {\n #if TONEMAP == NONE\n #if GAMMA == NONE\n // convert to linear space\n return decodeGamma(gammaColor);\n #else\n // output gamma space color directly\n return gammaColor;\n #endif\n #else\n // apply tonemapping in linear space and output to linear or\n // gamma (which is handled by gammaCorrectOutput)\n return gammaCorrectOutput(toneMap(decodeGamma(gammaColor)));\n #endif\n}\n";
export default _default;