Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

R151 redux #4192

Merged
merged 6 commits into from
Apr 1, 2023
Merged

R151 redux #4192

merged 6 commits into from
Apr 1, 2023

Conversation

elalish
Copy link
Collaborator

@elalish elalish commented Mar 31, 2023

Re-landing #4186

Apparently we have to specify that legacy lighting is a bad idea in PBR...

@elalish elalish self-assigned this Mar 31, 2023
@elalish elalish merged commit 2846fee into master Apr 1, 2023
@elalish elalish deleted the r151 branch April 1, 2023 00:32
@mrdoob
Copy link
Collaborator

mrdoob commented Apr 3, 2023

Hmm... didn't this piece of code warn you?

https://github.com/mrdoob/three.js/blob/8400dc53eff51b434ae965edefa387e7695f9e42/src/renderers/WebGLRenderer.js#L2296-L2308

Or was the fact the fact that the boolean got inverted that confused you?

/cc @donmccurdy

@mrdoob
Copy link
Collaborator

mrdoob commented Apr 3, 2023

Oh... Maybe because of the types?

mrdoob/three.js#25744

@donmccurdy
Copy link
Contributor

It'd be preferable if the type definitions did something like this, though I imagine it's more trouble to maintain:

/**
 * @deprecated Replaced by .useLegacyLights in r151+
 * @default false
 */
physicallyCorrectLights: boolean;

/** @default true */
useLegacyLights: boolean;

@elalish
Copy link
Collaborator Author

elalish commented Apr 3, 2023

Yeah, I was just going too fast. I had assumed anything called "useLegacy" would default to false.

@donmccurdy
Copy link
Contributor

One day... 😢

JL-Vidinoti pushed a commit to vidinoti/model-viewer that referenced this pull request Apr 22, 2024
* updated to three.js r151

* r151.2

* updated goldens

* DO NOT USE LEGACY LIGHTS

* fix two goldens
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants