WebGLRenderer code clean up.