title: Unity3D, round the edges of a box, cube?
body: <p>What's the usual way to round the edges on a cube, a rectangular object as in the examples?</p>
  
  <p><img src="https://i.stack.imgur.com/xuKiI.png" alt="enter image description here"> <img src="https://i.stack.imgur.com/uFlna.png" alt="enter image description here"></p>
  
  <p>The ideal result would look pretty much exactly like these images.</p>
  
  <p>(Naturally, you could literally use a mesh that has carefully rounded edges and corners, but it takes many tris to achieve that.)</p>
  
  <hr>
  
  <p>Note, of course for a <strong>NON</strong>-shader approach...</p>
  
  <p><img src="https://i.stack.imgur.com/qVPmo.jpg" alt="enter image description here"></p>
  
  <p>Add two small flat boxes and simply make that new normal halfway, i.e., 45 degrees, between the two sides:</p>
  
  <p><img src="https://i.stack.imgur.com/faVkr.jpg" alt="enter image description here"></p>
  
  <p>That would be drawn perfectly round ...</p>
  
  <p>GDG below has provided an article where someone asserts that this is indeed the best way, if not using a shader approach.</p>
  
  <p>I'm really wondering how to do this <strong>with a shader</strong> though.</p>
  
  <hr>
  
  <p>Note -  incredibly detailed tutorial on the non-shader approach</p>
  
  <p><a href="http://catlikecoding.com/unity/tutorials/rounded-cube/" rel="nofollow noreferrer">http://catlikecoding.com/unity/tutorials/rounded-cube/</a></p>