Open ily1437 opened 3 years ago
I got the same problem. Even though the depthTest and depthWrite of the MeshLineMaterial is true, the outline pass
won't work.
I got the same problem. Even though the depthTest and depthWrite of the MeshLineMaterial is true, the
outline pass
won't work.
I have found the key points. The shader of outline pass only worked for standard view-model transform, so that it did not work for meshline or sprite either. In order to resolve it, I coded two vert-shaders for them, and fixed meshes type checking in outline render function. then it worked for them.
I got the same problem. Even though the depthTest and depthWrite of the MeshLineMaterial is true, the
outline pass
won't work.I have found the key points. The shader of outline pass only worked for standard view-model transform, so that it did not work for meshline or sprite either. In order to resolve it, I coded two vert-shaders for them, and fixed meshes type checking in outline render function. then it worked for them.
I knew the type checking in outline render function. But what's wrong with view-model transform ? Could you show more details?
I am using both meshline and
outline pass
in three.js but found outline pass does not work with meshline. Is there a way to resolve it?