August 2018
Intermediate to advanced
528 pages
10h 58m
English
The next material on the list is THREE.MeshDepthMaterial. With this material, the way an object looks isn't defined by lights or by a specific material property; it is defined by the distance from the object to the camera. You can combine this with other materials to easily create fading effects. The only relevant properties this material has are the following two that control whether you want to show a wireframe:
|
Name |
Description |
|
wireframe |
This determines whether or not to show the wireframe. |
|
wireframeLineWidth |
This determines the width of the wireframe (this will only work with the THREE.CanvasRenderer). |
To demonstrate this, we modified the cubes example from Chapter 2, Basic Components That ...
Read now
Unlock full access