# Clipping Box (shaders)

**URL:** <https://discourse.threejs.org/t/clipping-box-shaders/4415>\
**Category:** Resources\
**Tags:** buffergeometry, clipping, shaders\
**Created:** [October 8, 2018, 5:15pm UTC](https://discourse.threejs.org/t/clipping-box-shaders/4415 "2018-10-08T17:15:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![prisoner849](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/prisoner849/32/535_2.png) [@prisoner849](https://discourse.threejs.org/u/prisoner849)\
**Post date:** [October 8, 2018, 5:15pm UTC](https://discourse.threejs.org/t/clipping-box-shaders/4415/1 "2018-10-08T17:15:21Z")

</div>

Hi community!

Here is a picture:

 ![BoxesOfVisibility](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/0/0fb1cfc2f8633c4e94f78af2415c6fd6ea6c37db.png)

And here is a working example:  
https://codepen.io/prisoner849/embed/preview/pxyYXO?default-tabs=js%2Cresult&height=300&host=https%3A%2F%2Fcodepen.io&slug-hash=pxyYXO

This topic is related to the other one:

> [@In the Orb (Shaders)](https://discourse.threejs.org/t/in-the-orb-shaders/3286):
>
> Hi, community! Here is a picture of a scene: And there is a working demo: [https://jsfiddle.net/prisoner849/4s2ch5vg/show](https://jsfiddle.net/prisoner849/4s2ch5vg/show) I had the idea about such scene for about two years. But I couldn’t start it as I had not enough knowledge of Three.js and had no idea where to start from at all. Years passed, I’ve opened this forum with cool people, whose posts and replies here helped me to get more experience and knowledge. Special thanks to @pailhead, because his posts gave me at least the…

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 🙂 ), passing it to the shaders.

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