https://github.com/marcofugaro/codrops-texture-projection
Article about Texture Projection in Three.js
https://github.com/marcofugaro/codrops-texture-projection
texture-mapping threejs webgl
Last synced: about 1 year ago
JSON representation
Article about Texture Projection in Three.js
- Host: GitHub
- URL: https://github.com/marcofugaro/codrops-texture-projection
- Owner: marcofugaro
- Created: 2019-10-27T14:23:30.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-12-12T17:51:04.000Z (over 5 years ago)
- Last Synced: 2025-03-28T13:38:43.042Z (about 1 year ago)
- Topics: texture-mapping, threejs, webgl
- Language: JavaScript
- Homepage: https://tympanus.net/codrops/2020/01/07/playing-with-texture-projection-in-three-js/
- Size: 19.7 MB
- Stars: 123
- Watchers: 7
- Forks: 28
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Playing with Texture Projection in Three.js
Learn how to project a texture on an object in [Three.js](http://threejs.org/), by [Marco Fugaro](https://twitter.com/marco_fugaro)

[Article on Codrops](https://tympanus.net/codrops/?p=45827)
[Demo](http://tympanus.net/Tutorials/TextureProjection/)
## Installation
To install dependencies run
```
npm install
```
To compile the code for development and start a local server run
```
npm start
```
To compile the code run
```
npm run build
```
## Credits
- Images from [Unsplash](https://unsplash.com/)
- Leaf model from [Poly](https://poly.google.com/)
- [Three.js](https://threejs.org/)
- [poisson-disk-sampling](https://github.com/kchapelier/poisson-disk-sampling) algorithm
- [canvas-sketch-util](https://github.com/mattdesl/canvas-sketch-util) for the util functions
- [threejs-modern-app](https://github.com/marcofugaro/threejs-modern-app) for the boilerplate
## License
This resource can be used freely if integrated or build upon in personal or commercial projects such as websites, web apps and web templates intended for sale. It is not allowed to take the resource "as-is" and sell it, redistribute, re-publish it, or sell "pluginized" versions of it. Free plugins built using this resource should have a visible mention and link to the original work. Always consider the licenses of all included libraries, scripts and images used.
## Misc
Follow Marco: [Twitter](https://twitter.com/marco_fugaro), [GitHub](http://github.com/marcofugaro/), [Codepen](https://codepen.io/marco_fugaro)
Follow Codrops: [Twitter](http://www.twitter.com/codrops), [Facebook](http://www.facebook.com/codrops), [Google+](https://plus.google.com/101095823814290637419), [GitHub](https://github.com/codrops), [Pinterest](http://www.pinterest.com/codrops/), [Instagram](https://www.instagram.com/codropsss/)
[© Codrops 2019](http://www.codrops.com)