spoint 0.1.37 → 0.1.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/app.js +3 -0
- package/package.json +1 -1
package/client/app.js
CHANGED
|
@@ -616,6 +616,9 @@ sun.shadow.camera.near = 0.5; sun.shadow.camera.far = 200
|
|
|
616
616
|
scene.add(sun)
|
|
617
617
|
scene.add(sun.target)
|
|
618
618
|
|
|
619
|
+
const _warmupPointLight = new THREE.PointLight(0xffffff, 0, 1)
|
|
620
|
+
scene.add(_warmupPointLight)
|
|
621
|
+
|
|
619
622
|
function fitShadowFrustum() {
|
|
620
623
|
const box = new THREE.Box3()
|
|
621
624
|
scene.traverse(o => { if (o.isMesh && (o.castShadow || o.receiveShadow) && o.geometry) box.expandByObject(o) })
|