It now renders lightmapped textures! Try it here.
I'm rendering the textures and the lightmaps on two separate buffers, then blending them together using Multiply blend mode. Unfortunately this requires rendering all triangles twice and since the drawing calls are the main bottleneck this results in almost halved performance.
Also, since I'm not doing any gamma adjustments the map ends up being displayed quite darker than in the quake 3 engine.
Also also, some textures are missing, I replace them with a plain white textures.
Really amazing work, definitely following this project!
ReplyDeleteGreat job! It would be nice if you publish the source.
ReplyDelete