You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: