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
Taking react-curtains for a spin and I'm coming across an issue I wanted to get your thoughts on. I'm finding that I can't seem to get planes with alpha transparency to render as expected (you can partially see the plane underneath the semi transparent one on top.) It looks like the alpha'd plane is punching a hole in the entire canvas and the html body background is showing through... 😕
I've tried combinations of the following and can't get it to work. The frag shader is very simple but perhaps there's an issue there?
I'm seeing the identical behavior in the vanilla curtains.js as well. After search through the github issues and not finding this issue at all, I'm starting to wonder if the issue lies in the shader?
It seems that there's indeed a bug with the transparent planes for now with curtains.js. I think this has to do with the depth buffer, I'll have to check how other libraries (ie three.js) handle that.
The good news is this is easily solvable for now by disabling the depthTest instead when drawing the plane that should have transparency (without passing the transparent property at all).
Here's a fix codesandbox: https://codesandbox.io/s/misty-violet-e75wd?file=/src/App.js
Hi Martin!
Taking react-curtains for a spin and I'm coming across an issue I wanted to get your thoughts on. I'm finding that I can't seem to get planes with alpha transparency to render as expected (you can partially see the plane underneath the semi transparent one on top.) It looks like the alpha'd plane is punching a hole in the entire canvas and the html body background is showing through... 😕
I've tried combinations of the following and can't get it to work. The frag shader is very simple but perhaps there's an issue there?
Plane
Curtains
Reduced test case here.
Thanks!
The text was updated successfully, but these errors were encountered: