admin管理员组文章数量:1391991
I have an online project running with Babylon JS where I need to remove the gray and white background (which Babylon JS has by default), and leave the canvas pletely transparent.
I need to see what's behind the canvas, and I can not ...
:(
How is it done, editing the .js or directly from my own html code?
Visit my project here
And the .js here
Thanks!
I have an online project running with Babylon JS where I need to remove the gray and white background (which Babylon JS has by default), and leave the canvas pletely transparent.
I need to see what's behind the canvas, and I can not ...
:(
How is it done, editing the .js or directly from my own html code?
Visit my project here
And the .js here
Thanks!
Share Improve this question asked Feb 6, 2019 at 23:37 Pablo_WebPablo_Web 4433 silver badges15 bronze badges 1- Please include relevant information in your question. Do not link to external resources. See How to Ask. – Felix Kling Commented Feb 7, 2019 at 0:12
1 Answer
Reset to default 9Hello you should just be able to call:
scene.autoClear = false
Other option:
scene.clearColor = new BABYLON.Color4(0, 0, 0, 0);
本文标签: javascriptBabylon JSHow can I make the transparent backgroundStack Overflow
版权声明:本文标题:javascript - Babylon JS - How can I make the transparent background - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744716745a2621448.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论