UNPKG

playcanvas

Version:

Open-source WebGL/WebGPU 3D engine for the web

18 lines (17 loc) 316 B
var tonemappingAces_default = ( /* glsl */ ` vec3 toneMap(vec3 color) { float tA = 2.51; float tB = 0.03; float tC = 2.43; float tD = 0.59; float tE = 0.14; vec3 x = color * getExposure(); return (x*(tA*x+tB))/(x*(tC*x+tD)+tE); } ` ); export { tonemappingAces_default as default };