Replies: 2 comments
-
No
That type of clipping is done in the fragment shader, it is done by comparing (negative dot product) fragment position information in the fragment shader with a list of (projected) planes provided as uniforms, and discarding fragments if the fail the test. It depends on your skill and the amount of time you have. You could certainly create a sub layer and modify the layers shaders, or perhaps this could even be packaged as an extension. |
Beta Was this translation helpful? Give feedback.
-
I was looking for something similar; this implementation was helpful for me: https://zhuanlan.zhihu.com/p/634390324 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I noticed that in the Roadmap there was this idea for a ThreeJSScene layer.
Is this something that's still on the roadmap?
I am asking because of a use case where we need to clip a 3D model
Could we somehow achieve this with the currently available layers?
Cheers
Beta Was this translation helpful? Give feedback.
All reactions