|
68 | 68 | scene.fog = new THREE.Fog( 0x0f3c37, 5, 40 ); |
69 | 69 |
|
70 | 70 | const dirLight = new THREE.DirectionalLight( 0xf9ff9b, 9 ); |
71 | | - dirLight.castShadow = true; |
72 | 71 | dirLight.position.set( 10, 10, 0 ); |
73 | | - dirLight.castShadow = true; |
74 | | - dirLight.shadow.camera.near = 1; |
75 | | - dirLight.shadow.camera.far = 30; |
76 | | - dirLight.shadow.camera.right = 30; |
77 | | - dirLight.shadow.camera.left = - 30; |
78 | | - dirLight.shadow.camera.top = 30; |
79 | | - dirLight.shadow.camera.bottom = - 30; |
80 | | - dirLight.shadow.mapSize.width = 2048; |
81 | | - dirLight.shadow.mapSize.height = 2048; |
82 | | - dirLight.shadow.bias = - 0.009; |
83 | 72 | scene.add( dirLight ); |
84 | 73 |
|
85 | 74 | scene.add( new THREE.HemisphereLight( 0x0f3c37, 0x080d10, 100 ) ); |
|
200 | 189 |
|
201 | 190 | const rainParticles = new THREE.Mesh( geometry, staticMaterial ); |
202 | 191 | rainParticles.count = maxParticleCount; |
203 | | - rainParticles.castShadow = true; |
204 | 192 | rainParticles.layers.disableAll(); |
205 | 193 | rainParticles.layers.enable( layer ); |
206 | 194 |
|
|
249 | 237 | const coneGeometry = new THREE.ConeGeometry( radius * 0.95, radius * 1.25, 32 ); |
250 | 238 |
|
251 | 239 | const cone = new THREE.Mesh( coneGeometry, coneMaterial ); |
252 | | - cone.castShadow = true; |
253 | 240 | cone.position.y = ( ( count - i ) * 1.5 ) + ( count * .6 ); |
254 | 241 | object.add( cone ); |
255 | 242 |
|
|
0 commit comments