R151 redux by elalish · Pull Request #4192 · google/model-viewer (original) (raw)

Skip to content

Sign in

Appearance settings

View all features

View all solutions

View all resources

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Sign in

Sign up

Appearance settings

google / model-viewer Public

Additional navigation options

Merged

elalish

merged 6 commits into

masterfrom

r151

Apr 1, 2023

ConversationCommits (6)ChecksFiles changed

Merged

R151 redux#4192

elalish

merged 6 commits into

masterfrom

r151

Conversation

@elalish

Copy link Copy Markdown

Contributor

@elalish elalish commented

Mar 31, 2023

Re-landing #4186

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

elalish added 5 commits

March 30, 2023 16:40

@elalish

[updated to three.js r151](/google/model-viewer/pull/4192/commits/dd30acc288c1ace7307fef1c3652c82410777b82 "updated to three.js r151")

[dd30acc](/google/model-viewer/pull/4192/commits/dd30acc288c1ace7307fef1c3652c82410777b82)

@elalish

[r151.2](/google/model-viewer/pull/4192/commits/79c5642bb281deef1324735cd0200a62865dbbe9 "r151.2")

[79c5642](/google/model-viewer/pull/4192/commits/79c5642bb281deef1324735cd0200a62865dbbe9)

@elalish

[updated goldens](/google/model-viewer/pull/4192/commits/7e42e74608a7369d4a0fda3a7954622ef8f023e8 "updated goldens")

[7e42e74](/google/model-viewer/pull/4192/commits/7e42e74608a7369d4a0fda3a7954622ef8f023e8)

@elalish

[Merge branch 'master' of github.com:google/model-viewer into r151](/google/model-viewer/pull/4192/commits/0fb7485b9116bd379f1ddfaae690b7fa105179d5 "Merge branch 'master' of github.com:google/model-viewer into r151")

[0fb7485](/google/model-viewer/pull/4192/commits/0fb7485b9116bd379f1ddfaae690b7fa105179d5)

@elalish

[DO NOT USE LEGACY LIGHTS](/google/model-viewer/pull/4192/commits/5b45815026490966f3a95d1dce973b2b69d8d38c "DO NOT USE LEGACY LIGHTS")

[5b45815](/google/model-viewer/pull/4192/commits/5b45815026490966f3a95d1dce973b2b69d8d38c)

@elalish elalish self-assigned this

Mar 31, 2023

@elalish

[fix two goldens](/google/model-viewer/pull/4192/commits/01fe1b484911427790f29c320cfeb9a395e91207 "fix two goldens")

[01fe1b4](/google/model-viewer/pull/4192/commits/01fe1b484911427790f29c320cfeb9a395e91207)

@elalish elalish mentioned this pull request

Apr 1, 2023

Revert "updated to three.js r151 (#4186)"#4191

Merged

@elalish elalish merged commit 2846fee into master

Apr 1, 2023

@elalish elalish deleted the r151 branch

April 1, 2023 00:32

@mrdoob

Copy link Copy Markdown

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 Copy Markdown

Collaborator

mrdoob commented

Apr 3, 2023

Oh... Maybe because of the types?

mrdoob/three.js#25744

@donmccurdy

Copy link Copy Markdown

Contributor

donmccurdy commented

Apr 3, 2023

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

/**

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

@elalish

Copy link Copy Markdown

Contributor 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 Copy Markdown

Contributor

donmccurdy commented

Apr 3, 2023

One day... 😢

JL-Vidinoti pushed a commit to vidinoti/model-viewer that referenced this pull request

Apr 22, 2024

@elalish @JL-Vidinoti

`[R151 redux (](/vidinoti/model-viewer/commit/4201f7db9cb1ca599eaf8b9b6e0ae9d0c4e4cd88 "R151 redux (#4192)

[4201f7d](/vidinoti/model-viewer/commit/4201f7db9cb1ca599eaf8b9b6e0ae9d0c4e4cd88)

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

Sign up for free to join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

@elalish elalish

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@elalish @mrdoob @donmccurdy