This seed is designed to bootstrap your Three.js development with modern tooling, technology and project organisation.
- Add GLSL loaders and example
- Add await, async with fileLoader examples
npm start
- Build and start the app in development mode at http://localhost:8080npm run build
- Run a production build, outputs to ./build/npm run lint
- Lint your code
import
asset files from within your JavaScript component files:
import textureURL from './texture.png';
Then load them with the matching loader from /Loaders/Loader.js
import { loadTexture } from '/loaders/loader.js';
import textureURL from './texture.png';
const myTexture = await loadTexture(textureURL);
Copyright (c) 2017 Edwin Webb