How to use the ShadowMaterial function from three
Find comprehensive JavaScript three.ShadowMaterial code examples handpicked from public code repositorys.
GitHub: avin/generative
107 108 109 110 111 112 113 114 115 116
return new THREE.MeshLambertMaterial({ color: 0xcc6e4a, }); } const shadowMaterial = new THREE.ShadowMaterial(); shadowMaterial.opacity = 0.9182; const sketch = ({ context, canvas }) => { let ready = false;
9
77
5
+ 5 other calls in file
GitHub: Neticon/webgl-tests
122 123 124 125 126 127 128 129 130 131
return child } function getPlane(...args) { const geometry = new THREE.PlaneGeometry(...args) const material = new THREE.MeshPhongMaterial({color: 0xbfbfbf, wireframe: false }) // const material = new THREE.ShadowMaterial({opacity:.5}) material.side = THREE.DoubleSide const mesh = new THREE.Mesh(geometry, material) return mesh
0
0
4
+ 2 other calls in file
three.Vector3 is the most popular function in three (22341 examples)