shadow
This commit is contained in:
parent
f0415b52ed
commit
98c4162263
4
main.js
4
main.js
@ -148,7 +148,7 @@ scene.add(ambientLight);
|
||||
const sunLight = new THREE.DirectionalLight(0xffffff, 0.3);
|
||||
sunLight.castShadow = true;
|
||||
sunLight.shadow.camera.near = 20;
|
||||
sunLight.shadow.camera.far = 200;
|
||||
sunLight.shadow.camera.far = 250;
|
||||
sunLight.shadow.camera.right = 10;
|
||||
sunLight.shadow.camera.left = -10;
|
||||
sunLight.shadow.camera.top = 10;
|
||||
@ -305,7 +305,7 @@ if (showParam) {
|
||||
showHelper.onChange(function (value) {
|
||||
|
||||
lightHelper.visible = value;
|
||||
octreeHelper.visible = value;
|
||||
//octreeHelper.visible = value;
|
||||
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user