Interactive object clipping

See the Code
See it Full Page
See Details

Click on the transform controls to move the move the knot through the clipping plane, and drag anywhere else to tumble.

I just realized you could do this with the fragment shader! It’s very sneaky, the flat gray surface is not the clipped face but the interior of the object, solid shaded. I love the effect though!

This Pen uses: HTML, CSS, JavaScript, and


Source: codepen

Добавить комментарий

Ваш e-mail не будет опубликован. Обязательные поля помечены *