UNPKG

playcanvas

Version:

PlayCanvas WebGL game engine

4 lines (2 loc) 316 B
var tonemappingAcesPS = "\nuniform float exposure;\n\nvec3 toneMap(vec3 color) {\n float tA = 2.51;\n float tB = 0.03;\n float tC = 2.43;\n float tD = 0.59;\n float tE = 0.14;\n vec3 x = color * exposure;\n return (x*(tA*x+tB))/(x*(tC*x+tD)+tE);\n}\n"; export { tonemappingAcesPS as default };