three-meshline icon indicating copy to clipboard operation
three-meshline copied to clipboard

Support Clipping Planes

Open bryaan opened this issue 2 years ago • 1 comments

Please add support for clipping planes!

This guy suggested to do it like this:

Put this at the top of the main function in the fragment shader:

if ( useClippingPlane == 1.0 && dot( vPosition, clippingPlane.xyz ) > clippingPlane.w ) discard;

bryaan avatar Apr 17 '23 22:04 bryaan

Sorry for the late reply on this one. Please join Discord for quick response!

This feature should be super easy to add (as the snippet implies), because it is not coupled to the geometry/shape in any way.

Would love to have this because when I add the <lume-meshline> element to lume proper, it will need to be compatible with the <lume-clip-plane> element.

trusktr avatar Nov 04 '23 23:11 trusktr