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

Editor: Rename physicallyCorrectLights to useLegacyLights #25556

Merged
merged 3 commits into from
Feb 24, 2023

Conversation

linbingquan
Copy link
Contributor

@linbingquan linbingquan commented Feb 23, 2023

Related issue: #XXXX

Description

Rename physicallyCorrectLights to useLegacyLights for renderer to clean the browser warning.

If this PR has any problem, please tell me.

@linbingquan linbingquan changed the title Editor: physicallyCorrectLights -> useLegacyLights Editor: Rename physicallyCorrectLights to useLegacyLights Feb 23, 2023
@@ -14,7 +14,7 @@ function Config() {
'project/renderer/antialias': true,
'project/renderer/shadows': true,
'project/renderer/shadowType': 1, // PCF
'project/renderer/physicallyCorrectLights': false,
'project/renderer/useLegacyLights': false,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should change the default yet?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That depends on @mrdoob preference. It could be interesting to enable physically correct lights in the editor earlier compared to the library itself.

editor/js/Strings.js Outdated Show resolved Hide resolved
@Mugen87
Copy link
Collaborator

Mugen87 commented Feb 24, 2023

Merging this now to remove the console warning. The value of useLegacyLights can be changed with a different PR.

@Mugen87 Mugen87 merged commit c3c7caf into mrdoob:dev Feb 24, 2023
@Mugen87 Mugen87 added this to the r151 milestone Feb 24, 2023
@linbingquan linbingquan deleted the dev-editor-renderer branch February 24, 2023 09:19
This pull request was closed.
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