Update doc code examples.
Merge branch 'texture-atlas2' into texture-atlas