How to use the ShadowMaterial function from three

Find comprehensive JavaScript three.ShadowMaterial code examples handpicked from public code repositorys.

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;
fork icon9
star icon77
watch icon5

+ 5 other calls in file

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
fork icon0
star icon0
watch icon4

+ 2 other calls in file

Other functions in three

Sorted by popularity

function icon

three.Vector3 is the most popular function in three (22341 examples)