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

Text: error using postprocessing with an outline present #216

Open
lojjic opened this issue Aug 9, 2022 · 1 comment
Open

Text: error using postprocessing with an outline present #216

lojjic opened this issue Aug 9, 2022 · 1 comment

Comments

@lojjic
Copy link
Collaborator

lojjic commented Aug 9, 2022

Issue demonstrated at: https://codesandbox.io/s/selective-bloom-forked-chd9ff?file=/src/App.js

When using the postprocessing library with the material override workaround in place, it tries to set .material to the value of .material. Since Text has a custom getter for .material that returns an array of two materials when a text outline is present, this ends up trying to set .material to that array, and the code does not account for that case.

Possible fix: in the .material setter, check whether it's an array and if so extract the base material out of it.

@jackletter
Copy link

jackletter commented Aug 2, 2023

same issue

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

No branches or pull requests

2 participants