removed Layers (use material.renderPass instead), added visible flag