Implemented environment mapping