Skip to main content
10 events
when toggle format what by license comment
Oct 15, 2017 at 9:21 comment added IndieForger +1 from me as well. Great answer. @bummzack I think solving gradient like texturing deserves a question on its own.
Jun 27, 2012 at 9:01 vote accept Esa
Jun 27, 2012 at 8:55 history edited knight666 CC BY-SA 3.0
added 228 characters in body
Jun 27, 2012 at 8:50 comment added bummzack +1. Very detailed answer. Just lacks the texturing to get the same look as in the reference image :)
Jun 27, 2012 at 8:40 history edited knight666 CC BY-SA 3.0
grammarz
Jun 27, 2012 at 8:28 comment added knight666 I have updated my answer (with pictures!) to hopefully clear things up for you.
Jun 27, 2012 at 8:28 history edited knight666 CC BY-SA 3.0
added 3352 characters in body; deleted 6 characters in body
Jun 27, 2012 at 7:47 comment added knight666 I always try to make code readable without any comments (because comments lie). However, in this case I will have to make an exception. WriteTriangle is a method that takes three vec2's and saves it as a triangle in some kind of mesh structure. Internally, the mesh would store a (dynamic) list of vertices and use that to render a model.
Jun 27, 2012 at 7:21 comment added Esa I tried to figure out what happens in there, hard without any comments, but apparently your WriteTriangle method draws a procedural mesh according to the angles?
Jun 26, 2012 at 10:19 history answered knight666 CC BY-SA 3.0