Implemented support for layered rendering.