Skip to content

Commit

Permalink
feat(core): default physicallyCorrectLights to true
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyJasonBennett committed Mar 25, 2022
1 parent a12d5e5 commit 26a39d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/fiber/src/core/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ function createRoot<TCanvas extends Element>(canvas: TCanvas): ReconcilerRoot<TC
const toneMapping = flat ? THREE.NoToneMapping : THREE.ACESFilmicToneMapping
if (gl.outputEncoding !== outputEncoding) gl.outputEncoding = outputEncoding
if (gl.toneMapping !== toneMapping) gl.toneMapping = toneMapping
if (!gl.physicallyCorrectLights) gl.physicallyCorrectLights = true

// Set gl props
if (glConfig && !is.fun(glConfig) && !isRenderer(glConfig) && !is.equ(glConfig, gl, shallowLoose))
Expand Down

0 comments on commit 26a39d0

Please sign in to comment.