refactoring gradient
update trackball to new threeJS version