javascript - Babylon JS - How can I make the transparent background - Stack Overflow

I have an online project running with Babylon JS where I need to remove the gray and white background (

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
Add a ment  | 

1 Answer 1

Reset to default 9

Hello you should just be able to call:

scene.autoClear = false

Other option:

scene.clearColor = new BABYLON.Color4(0, 0, 0, 0);

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744716745a4589663.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信