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

feat: Add ShadowAlpha #1729

Merged
merged 2 commits into from
Dec 11, 2023
Merged

feat: Add ShadowAlpha #1729

merged 2 commits into from
Dec 11, 2023

Conversation

FarazzShaikh
Copy link
Member

Why

Adds <ShadowAlpha />, a component that makes an object's shadow respect its opacity and alphaMap propeties.

What

Uses Screendoor transparency, based off demo by Garrett Johnson, to simulate alpha within shadows.

Has the side effect of causing shadows to have a dither pattern if the camera gets too close. Thus provides opacity override to disable the effect by setting opacity to 1 as the user needs it.

Checklist

  • Documentation updated
  • Storybook entry added
  • Ready to be merged

Codesandbox demo: https://codesandbox.io/s/fervent-booth-j3c4dv?file=/src/App.jsx

Copy link

vercel bot commented Nov 22, 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 Nov 22, 2023 3:28pm

Copy link

codesandbox-ci bot commented Nov 22, 2023

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 9b3ea1a:

Sandbox Source
charming-hodgkin-smm5hj Configuration
Ground reflections and video textures Configuration
arc-x-pmndrs-colors Configuration
sleepy-lovelace-t8crqd PR

@drcmda drcmda merged commit 6769989 into pmndrs:master Dec 11, 2023
2 checks passed
Copy link

🎉 This PR is included in version 9.92.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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