【发布时间】:2015-07-24 15:24:56
【问题描述】:
这是我的问题的图片,就像你可以看到我的 ShaderMaterial 上的阴影不平滑,它是 PhongMaterial 的副本。
目前我已尝试在互联网上找到所有这些解决方案,但似乎没有任何效果:
groundGeometry.computeFaceNormals();
groundGeometry.computeVertexNormals();
groundGeometry.verticesNeedUpdate = true;
renderer.shadowMapType = THREE.PCFShadowMap; //And all options possible
renderer.shadowMapCullFace = THREE.CullFaceBack; //And the other one
renderer = new THREE.WebGLRenderer({ antialias : true });
我还使用 SpotLight 的不同参数(也尝试使用定向光:
shadowMapWidth
shadowMapHeight
shadowCameraLeft
shadowCameraRight
shadowCameraBottom
shadowCameraTop
shadowCameraNear
shadowCameraFar
shadowBias
说实话,我现在不知道该怎么办:/
所以任何帮助将不胜感激!
【问题讨论】:
-
您是说您的“PhongMaterial 副本”的行为与实际 PhongMaterial 不同吗?