I am using the three.meshline package I’m trying to set clipping planes on the MeshLineMaterial. There is an open ticket here: Support for clipping planes · Issue #33 · spite/THREE.MeshLine · GitHub.
I tried adding that suggested code change into the fragment shader, but I get errors.
ERROR: 0:96: 'useClippingPlane' : undeclared identifier
ERROR: 0:96: 'vPosition' : undeclared identifier
ERROR: 0:96: 'clippingPlane' : undeclared identifier
etc. Which makes sense since those values are nowhere in the shader (or file for that matter).
I am wondering if there is a better approach to setting the clipping planes than in the fragment shader?
If the fragment shader is the way, can anyone point me in the proper direction?
I have also tried this fork: GitHub - lume/three-meshline: Mesh-based replacement for `THREE.Line` to allow lines thicker than 1 pixel and other features. (with related issue: Support Clipping Planes · Issue #8 · lume/three-meshline · GitHub) - same result.
I also tried: GitHub - pmndrs/meshline: 🪱 Mesh replacement for THREE.Line with the same result (no clipping).
Thanks for your help!