Implemented multisampling.