I am writing a website that calculates geometry using a recursive algorithm and displays that geometry using WebGL. Can WebGL calculate the geometry using recursion? I know shaders can’t be recursive, but I don’t know if there is still some recursion supported.
Thanks, Istvan.
You can easily generate geometry using recursive algorithms in JavaScript. You would store the generated geometry in an array buffer, and then pass it into WebGL. WebGL, however, doesn’t have any geometry generation capabilities (e.g., geometry shaders, or subdivision surfaces).