How to use the MeshMatcapMaterial function from three
Find comprehensive JavaScript three.MeshMatcapMaterial code examples handpicked from public code repositorys.
51 52 53 54 55 56 57 58 59 60const material = new THREE.MeshStandardMaterial({ color: 0xFF6347 }); const torus = new THREE.Mesh(geometry, material); scene.add(torus); // Box const boxGeometry = new THREE.BoxGeometry(10, 15, 34, 23, 34); const boxMaterial = new THREE.MeshMatcapMaterial({ color: 0x345567 }); const box = new THREE.Mesh(boxGeometry, boxMaterial); box.translateX(50); scene.add(box); // Lights
+ 4 other calls in file
three.Vector3 is the most popular function in three (22341 examples)