Skip to content

Instantly share code, notes, and snippets.

@jonlo
jonlo / THREE_COLORSPACE_MANAGEMENT.md
Last active January 27, 2020 07:51 — forked from donmccurdy/THREE_COLORSPACE_MANAGEMENT.md
[Three color management] Color management in three.js #color

Color management in three.js

Illustration of bad gamma.

A particularly clear example of gamma correct (left) and incorrect (right) rendering. Source.

Best practices

  1. Textures with color data (.map, .emissiveMap, etc.) should be configured with .encoding = sRGBEncoding; all other textures use LinearEncoding.
  2. Vertex colors should be stored in linear colorspace.