ianmackenzie / elm-3d-scene

A high-level 3D rendering engine for Elm, with support for lighting, shadows, and realistic materials.
https://package.elm-lang.org/packages/ianmackenzie/elm-3d-scene/latest/
Mozilla Public License 2.0
207 stars 27 forks source link

Switch to correct sRGB gamma correction #25

Closed ianmackenzie closed 5 years ago

ianmackenzie commented 5 years ago

elm-3d-scene currently uses the simple sRGB gamma correction approximation of using an exponent of 2.2 (or 1/2.2); this should be changed (in both shaders and conversion of Color values to linear colors) to use the actual algorithm.

ianmackenzie commented 5 years ago

Now implemented!