1. 首页
  2. three.js

three.js在运行时清除阴影

three.jsn正在尝试在运行时手动“启用/禁用”阴影。这里有一个答案37,我遵循它,它能够禁用阴影的自动更新,但无法清除已经存在的阴影。nBTW I\”m using EffectComposer with a RenderPass instead of using renderer.render() directly.nThanks for reading, any advice? nSolved the problem by changingnthis.renderer.clearTarget(this.dirLight.shadowMap);n进入nthis.renderer.clearTarget(this.dirLight.shadow.map);n Clear shadow at runtimen

three.js在运行时清除阴影 为WP2原创文章,链接:https://www.wp2.cn/three-js/three-js%e5%9c%a8%e8%bf%90%e8%a1%8c%e6%97%b6%e6%b8%85%e9%99%a4%e9%98%b4%e5%bd%b1/