Hi I’m trying to
render Bounding Box that always rendered first
so I change material’s props depthTest, depthWrite false.
but with double sided transparent material, it doesn’t work… how to fix this…?
left is not transparent, right is transparent with double sided
My code sandbox below Thanks in advance
depth test example (forked) by dongho-shin using @react-three/drei, @react-three/fiber, @types/three, loader-utils, react, react-dom, react-scripts, three
how to fix this…?
Try rendering the outlines in a separate
.render call, clearing only color / stencil in-between calls - that way everything in the second call will appear above the first one, regardless how the materials are set up.
Example (lines 67+ mostly)
@mjurczyk Thanks for suggestion also your examples but I fixed like this, it works
//Object3D Setting that use MaterialSetting above
renderOrder = 1
PivotControls in drei, Github issues in three.js How to use polygonOffset solving Z-fighting poblems