News for hackers. Stuff that matters.
Re:Terrain rendering in fewer than 20 lines of code by lucideer on Monday November 27, 2017 @10:33AM (#15788064)
Firstly - this is really nice. I don't want to derogate the work itself in any way (and I don't think the gp did either) - I'm just really quite curious about what exactly the post title is referring to.

If I extract the code and delete what I can see might be extraneous setup boilerplate (event handling, camera navigation, init function, image download helper utility, various config object initialisations), it still comes in at around 150-200 lines. The render function alone is 38 lines, not including the external dependencies of that function (DrawVerticalLine, screen, camera).

Again, not a criticism of the work, just querying the title.

There are no comments on this comment yet.