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

fix: enable positive Y positioning in ContactShadows #1547

Merged

Conversation

NordlingDev
Copy link
Contributor

@NordlingDev NordlingDev commented Jun 29, 2023

closes issue #391

Why

There was no way to set positive Y position in ContactShadows as the position of the internal OrthographicCamera wasn't compensating the distance of the shadow's position.

This fix resolves issue #391.

What

The solution is to use the value of incoming position Y property (if defined) and set that on the Z position of the OrthographicCamera.

Checklist

  • Storybook entry slightly updated (example)
  • Ready to be merged

@vercel
Copy link

vercel bot commented Jun 29, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
drei ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 29, 2023 9:04pm

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit f9b9312:

Sandbox Source
upbeat-sound-rt39jl Configuration
Ground reflections and video textures Configuration
arc-x-pmndrs-colors Configuration

@github-actions
Copy link

github-actions bot commented Jul 1, 2023

🎉 This PR is included in version 9.77.10 🎉

The release is available on:

Your semantic-release bot 📦🚀

drcmda added a commit that referenced this pull request Jul 3, 2023
@drcmda
Copy link
Member

drcmda commented Jul 3, 2023

sorry i had to revert, it breaks contact shadows - some reports of that in bruno simons threejs journey

Screenshot 2023-07-03 at 14 28 56 Screenshot 2023-07-03 at 14 29 01

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

Successfully merging this pull request may close these issues.

2 participants