Cheap round-edged box (vertex shader)

This saves you the polygons for the corners, also by using a uniform cube you can use the boxSize property for sizing it.
https://codepen.io/Fyrestar/pen/pXJoda?editors=1010

8 Likes