AnalyticalGraphicsInc/cesium — pull request #69 by IanLilleyT (2012-06-12 23:23:22+00:00)
Title: Dynamic texture atlas

Improved texture atlas now lets you add images to it without recreating the entire texture, inspired by: http://blackpawn.com/texts/lightmaps/default.html.

If the atlas' free space is all used up, the texture is silently rebuilt. Had to hold on to Image objects to do this since webGL doesn't allow reading data from an active texture unit -- ideas to improve this welcome.

Wrote a couple new specs for TextureAtlas and made sure BillboardCollectionSpec and LabelCollectionSpec still work. Made an optimization to update() in LabelCollection -- it can now tell the difference between creating a new atlas and adding new images to the existing atlas. Before, the atlas was recreated every time.