Hey. I created a platform and placed some cubes there.
Cubes setup:
cube.castShadow = true;
Site setup:
world.receiveShadow = true;
Light source setting:
var light = new THREE.PointLight(0xffffff, 1, 10, 2);
light.power = 600;
light.castShadow = shadow_on;
light.shadow.mapSize.width = 1024;
light.shadow.mapSize.height = 1024;
light.shadow.camera.near = 0.5;
light.shadow.camera.far = 512;
Настройка рендера:
renderer = new THREE.WebGLRenderer({antialias: true});
renderer.shadowMap.enabled = true;
renderer.shadowMap.type = THREE.PCFSoftShadowMap;
This problem appears
Look into setting light.shadow.bias
and light.shadow.normalBias
. bias = -1e-4
and normalBias = 1e2
is a reasonable starting place.
tizkon
4
The same problem was solved at the end of this post:
gkjohnson Thank you. Helped
-1e-4 and 1e2
What are these symbols?