Brightness and contrast adjustment
github.com
Based on three.js code
brightness: -1 to 1 (-1 is solid black, 0 is no change, and 1 is solid white)
contrast: -1 to 1 (-1 is solid gray, 0 is no change, and 1 is maximum contrast)
Set the size of the currently bound WebGLBuffer object for the passed
target to the size of the passed data, then write the contents of data to
the buffer object.
This class is an efficient alternative to Geometry, because it stores all data, including vertex positions,
face indices, normals, colors, UVs, and custom attributes within buffers; this reduces the cost of passing
all this data to the GPU.