UNPKG

playcanvas

Version:

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

15 lines (14 loc) 321 B
var tonemappingAces_default = ` fn toneMap(color: vec3f) -> vec3f { let tA: f32 = 2.51; let tB: f32 = 0.03; let tC: f32 = 2.43; let tD: f32 = 0.59; let tE: f32 = 0.14; let x: vec3f = color * getExposure(); return (x * (tA * x + tB)) / (x * (tC * x + tD) + tE); } `; export { tonemappingAces_default as default };