Replaced calls to deprecated three.js methods

Removed calls to deprecated three.js API. The latest voxel-engine uses a newer API.

Actually, happen to be hacking this to work in another, non voxel-js project, so haven't tested against voxel-engine per-say. But as far as I can tell this should make it work.