Thursday, December 13, 2012

Rendering Order

Front to back or back to front...
Ever since the first game I wrote I always drew the background first with depth test disabled and then the characters and buildings with depth test enabled ... This is exactly how we render a scene in Adrian. But we could be rendering the foregrounds first so the number of pixels touched is minimal. This has to be done with depth test enabled of course...