UNPKG

glsl-tone-map

Version:

A collection of tone mapping functions available both as ES modules strings and as GLSL files for use with glslify.

10 lines (7 loc) 134 B
export default /* glsl */ `vec3 reinhard(vec3 x) { return x / (1.0 + x); } float reinhard(float x) { return x / (1.0 + x); } `;