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);
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744716745a4589663.html
评论列表(0条)