-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
Stencils seem not to work #876
Comments
I can confirm. I've encountered the same recently when trying to make a
I'm not sure. I'm guessing that it's an issue with Tres core, but I haven't found a culprit yet. I have a working stencil in plain THREE.js using the same THREE version as Tres core. When those same material settings are used in Tres, the stencil doesn't work. Probably important to note that in recent versions of THREE, you now have to specifically enable https://threejs.org/docs/#api/en/renderers/WebGLRenderer I'm currently on the road and will probably look at this again next week. In the meantime, @AndreasFaust if you make any progress, please post your findings. Thanks! |
Thank you @andretchen0! Adding the |
Great to hear! Thanks for following up! |
Describe the bug
I am trying to reproduce Drei’s Mask component.
I have set up a red sphere as a mask for an orange plane behind it.
The sphere should be invisible and the plane should only be visible through the mask of the invisible sphere.
Unfortunately it does not work. Am I doing something wrong or has it something to do with TresJS?
INFO: To make it work in React
colorWrite
must be set tofalse
. I set it totrue
, because the Sphere would be invisible otherwise.Reproduction
https://stackblitz.com/edit/vitejs-vite-zqtnhb?file=src%2FApp.vue
Steps to reproduce
No response
System Info
No response
Used Package Manager
npm
Code of Conduct
The text was updated successfully, but these errors were encountered: