Tuesday, July 3, 2012

Minecraft lighting

A long time ago I mentioned that I made a simple Minecraft renderer which I basically hadn't touched since then. This morning I didn't have much to do so I played around with it a bit and fixed both the lighting and a bug with the transparency sorting.

I managed to simplify the code a lot and speed things up at the same time, so I'm happy with the results. Right now it's possible to add torches (hard coded, but can just as easily be replaced with any kind of block) and remove blocks.