對three.js和webgl非常新穎,我得到非常奇怪的陰影與定向光。奇怪的陰影與three.js
這裏是我的渲染代碼:
this.renderer.shadowMapEnabled = true;
this.renderer.shadowMapSoft = true;
this.renderer.shadowCameraNear = 3;
this.renderer.shadowCameraFar = this.camera.far;
this.renderer.shadowCameraFov = 75;
this.renderer.shadowMapBias = 0.0039;
this.renderer.shadowMapDarkness = 0.5;
this.renderer.shadowMapWidth = 1024;
this.renderer.shadowMapHeight = 1024;
任何想法?
減少你的光源的尺寸可視化的陰影相機,但我認爲這可能會發生,因爲投影的立方體很小。我想(5,5,20),或者在那裏的某個地方。 –