Generating Z layers

Render Z layers into textures.