# Shadow and color problems going from v64 to v161

**URL:** <https://discourse.threejs.org/t/shadow-and-color-problems-going-from-v64-to-v161/61640>\
**Category:** Questions\
**Tags:** lights, migration, color-space\
**Created:** [February 19, 2024, 12:46pm UTC](https://discourse.threejs.org/t/shadow-and-color-problems-going-from-v64-to-v161/61640 "2024-02-19T12:46:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [February 19, 2024, 1:28pm UTC](https://discourse.threejs.org/t/shadow-and-color-problems-going-from-v64-to-v161/61640/2 "2024-02-19T13:28:33Z")

</div>

Read the following two guides to understand the changes to color spaces and lighting in latest `three.js` versions:

> [@Updates to Color Management in three.js r152](https://discourse.threejs.org/t/updates-to-color-management-in-three-js-r152/50791):
>
> The upcoming release r152 will contain changes affecting color and lighting. These updates enable a [“linear workflow”](https://developer.nvidia.com/gpugems/gpugems3/part-iv-image-effects/chapter-24-importance-being-linear) by default, for better image quality in both physically-based and non-physically-based scenes. By “linear workflow”, we mean that any sRGB input colors (as found in most textures, color pickers, CSS, and HTML) are converted from sRGB to a linear working color space for rendering, and the rendered image is converted back to sRGB for display. What does that mean for me? These cha…

> [@Updates to lighting in three.js r155](https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733):
>
> The upcoming release r155 will contain a major change in context of lighting. The legacy lighting mode will be disabled by default which affects all light intensities and how point and spot lights decay. What does that mean for me? The release changes the default of WebGLRenderer.useLegacyLights from true to false and also deprecates the property. Meaning it will be eventually removed from the engine with r165. Setting WebGLRenderer.useLegacyLights to false is one important prerequisite for a…

BTW: Upgrading from `r64` to `161` is a huge step. You might want to consider to break down your migration into steps of ten releases. Meaning `r64` to `r74` to `r84` and so on. This will make it much easier to detect breaking changes and apply the respective migration tasks.

---

_[View the full topic](https://discourse.threejs.org/t/shadow-and-color-problems-going-from-v64-to-v161/61640)._
