title: OpenGL: create complex and smoothed polygons
body: <p>In my OpenGL project, I want to dynamically create smoothed polygons, similiar like this one:</p>
  
  <p><img src="https://i.stack.imgur.com/24aAj.png" alt="enter image description here"> </p>
  
  <p>The problem relies mainly in the smoothing process. My procedure up to this point, is firstly to create a VBO with randomly placed vertices.</p>
  
  <p>Then, in my fragment shader, (I'm using the programmable function pipeline) there should happen the smoothing process, or in other words, created the curves out of the previously defined "lines" between the vertices.</p>
  
  <p>And exactly here is the problem: I am not very familiar with thoose complex mathematical algorithms, which would examine, if a point is inside the "smoothed polygon" or not.</p>