Replies: 4 comments 1 reply
-
It looks to be attaching to the mesh, just not compiling to fire the |
Beta Was this translation helpful? Give feedback.
-
I thought this would be easy to do as I have gotten this to work a while back, but surprisingly no matter what major version of R3F, React or Threejs I use, the custom depth material never seems to compile. I'll see if i can't dig deeper later tonight. |
Beta Was this translation helpful? Give feedback.
-
Hi ! Any news about this ? Im trying with a regular mesh and the compile never happends. |
Beta Was this translation helpful? Give feedback.
-
it will attach properly, the material is there if you log it, i think that's all fiber can do. <mesh>
<fooMaterial attach="customDepthMaterial" /> is the same as const mesh = new THREE.Mesh()
mesh.customDepthMaterial = new FooMaterial() can it be that it just doesn't work with instanced meshes?
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When adding a custom depth material to an instanced mesh, the material never attaches, see this Codesandbox, using
8.6.2
. I have gotten it to work previously withreact-three-fiber
v7.0.2. Am I missing something here? I would expect the console to log something as the material is in use.Beta Was this translation helpful? Give feedback.
All reactions