Dynamically turn on/off antialiasing and shadows in WebGLRenderer

后端 未结 1 1806
醉梦人生
醉梦人生 2020-12-22 11:27

How can I dynamically turn on and off antialiasing and shadows in WebGLRenderer?

Simply changing the properties of anti-aliasing and shadowMapEnable does not work. I

相关标签:
1条回答
  • 2020-12-22 12:05

    You can't enable/diable antialiasing from a WebGL context after creation. The only way is to create a new context and submit all the buffers and textures again.

    So, ideally you would only need to create a new WebGLRenderer with the antialias boolean. This doesn't work yet thought, but I'm working to have it working ASAP.

    0 讨论(0)
提交回复
热议问题