点光源问题
-
如果方便的话,可以提供一下 demo 示例
在codepen里改一下代码 https://codepen.io/pen?template=QWQrRmr
保存后提供一下链接地址 我们看一下具体的问题 -
for (let r = 0; r < 3; r++) { for (let c = 0; c < 3; c++) { let pointLightObj = new Orillusion.Object3D() pointLightObj.x = (c - 1) * width * 0.4 pointLightObj.y = (r - 1) * height * 0.4 pointLightObj.z = planeTypes[t] === 'floor' ? (0 - wallHeight * 0.5) : (wallHeight * 0.5) let pointLight = pointLightObj.addComponent(Orillusion.PointLight) pointLight.range = Math.max(width, height) * 0.3 pointLight.intensity = 10 pointLight.lightColor = new Orillusion.Color(1.0, 0.95, 0.84, 1.0) this.scene.addChild(pointLightObj) this.lights.push(pointLightObj) } }