Clipping Box (shaders)

shaders
buffergeometry
clipping

#1

Hi community!

Here is a picture:

And here is a working example:

This topic is related to the other one:

The difference is that in this example I use a box for visibility. It has more parameters than a sphere, thus I use a structure (as I’ve never used it before, so I’ve gave it a try :slight_smile: ), passing it to the shaders.

Just to clarify: points are static, only the box of visibility moves through them.


Clipping Solids (SDF functions)
📕 Three.js Bookshelf