$ npm install --save babel-cli babel-preset-es2015
$ npm install --save-dev jasmine.babelrc:
{
"presets": ["es2015"]| #!/bin/bash | |
| sudo mount -o remount,size=10G,noatime /tmp | |
| echo "Done. Please use 'df -h' to make sure folder size is increased." |
$ npm install --save babel-cli babel-preset-es2015
$ npm install --save-dev jasmine.babelrc:
{
"presets": ["es2015"]| // json is a JSON atlas generated by TexturePacker | |
| // imagepath is a url to the full texture atlas image | |
| var atlasTexture = THREE.ImageUtils.loadTexture( imagepath, undefined, function() { | |
| for (var key in json.frames) { | |
| var tex = atlasTexture.clone(); | |
| var frame = json.frames[key].frame; | |
| tex.repeat.x = ( frame.w / atlasTexture.image.width ); |