Triangle pattern GLSL shader

Viewed 1636

Is there any simple algorithm like Voronoi diagram to divide any rectangular plane to triangles, eventually, using # of pre-defined points.

To be honest, I have to write a very simple fragment shader like this.

Theoretically, this Voronoii shader could be 'upgraded' by Delaunay triangulation but wanna find the more elegant solution.

2 Answers
Related