Materials
Video Lecture
Section | Video Links |
---|---|
Materials | ![]() ![]() |
(Pay Per View)
You can use PayPal to purchase a one time viewing of this video for $1.49 USD.
Description
In this lesson, we will introduce four of the most commonly used materials that you will see used in Three.js.
- MeshBasicMaterial
- MeshNormalMaterial
- MeshPhongMaterial
- MeshStandardMaterial
There are other materials, but we will discuss those, plus more details, about each material as we progress.
In this lesson, we will start by focusing on several important factors about materials and why you might choose one over the others.
./src/App.jsx
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
|
./src/Polyhedron.jsx
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
|
Working Example
Useful Links
Materials (Working Example) | sbedit.net | |
Materials | threejs.org | sbcode.net |
MeshBasicMaterial | threejs.org | sbcode.net |
MeshNormalMaterial | threejs.org | sbcode.net |
MeshPhongMaterial | threejs.org | sbcode.net |
MeshStandardMaterial | threejs.org | sbcode.net |
GitHub Branch
git clone https://github.com/Sean-Bradley/React-Three-Fiber-Boilerplate.git
cd React-Three-Fiber-Boilerplate
git checkout materials
npm install
npm start