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

theatre/r3f: Allow physical lighting in snapshot viewport #114

Merged
merged 4 commits into from
May 19, 2022

Conversation

donmccurdy
Copy link
Contributor

@donmccurdy donmccurdy commented Mar 30, 2022

Related:

I'd encourage any new project to enable renderer.physicallyCorrectLights=true, but it's difficult to change the default in three.js or R3F at this point. There is no downside to physical lighting (you can still reduce decay for non-physical light range if needed), we're just stuck with it off for backward-compatibility. In order to at least support the more modern and correct workflow, could we expose this as a viewport option?

This contribution is funded by The New York Times.

@netlify
Copy link

netlify bot commented Mar 30, 2022

Deploy Preview for theatrejs-playground ready!

Name Link
🔨 Latest commit 08a064e
🔍 Latest deploy log https://app.netlify.com/sites/theatrejs-playground/deploys/624472a8b2b12017429ef49e
😎 Deploy Preview https://deploy-preview-114--theatrejs-playground.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@vezwork
Copy link
Contributor

vezwork commented May 18, 2022

@AndrewPrifer should this go in?

@AndrewPrifer
Copy link
Contributor

Hey @vezwork thanks for the reminder, completely forgot about this. There are some conflicts to resolve, gonna merge it later today.

# Conflicts:
#	packages/r3f/src/components/SnapshotEditor.tsx
# Conflicts:
#	packages/r3f/src/components/SnapshotEditor.tsx
#	packages/r3f/src/components/editorStuff.ts
@vercel
Copy link

vercel bot commented May 19, 2022

@AndrewPrifer is attempting to deploy a commit to the Theatrejs Team on Vercel.

A member of the Team first needs to authorize it.

@AndrewPrifer AndrewPrifer merged commit 386a8fa into theatre-js:main May 19, 2022
@donmccurdy donmccurdy deleted the feat/physical-lighting branch May 19, 2022 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
r3f studio Related to @theatre/studio
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants