Javascript 如何在JS短代码中使背景透明

Javascript 如何在JS短代码中使背景透明,javascript,html,babylonjs,Javascript,Html,Babylonjs,我在一个网站上工作,我想添加一个与巴比伦三维模型。我正在使用下面列出的基本短代码,它工作得很好。但是,我只想加载没有可见背景的模型。我知道线条控制颜色,我可以在那里更改颜色,但有没有办法将其设置为完全透明 <babylon extends="minimal"> <!-- Ground that receives shadows --> <ground receive-shadows="true&q

我在一个网站上工作,我想添加一个与巴比伦三维模型。我正在使用下面列出的基本短代码,它工作得很好。但是,我只想加载没有可见背景的模型。我知道线条控制颜色,我可以在那里更改颜色,但有没有办法将其设置为完全透明

<babylon extends="minimal">
          <!-- Ground that receives shadows -->
          <ground receive-shadows="true"></ground>
          <!-- Default skybox
         <skybox></skybox>
         -->
                 <model url="insert url here">
                </model>
          <!-- enable antialiasing -->
          <engine antialiasing="true"></engine>
          <!-- camera configuration -->
          <camera>
            <!-- add camera behaviors -->
            <behaviors>
              <!-- enable default auto-rotate behavior -->
              <auto-rotate type=".5"></auto-rotate>
              <!-- enable and configure the framing behavior -->
              <framing type="2" zoom-on-bounding-info="true" zoom-stops-animation="false"></framing>
              <!-- enable default bouncing behavior -->
              <bouncing type="1"></bouncing>
            </behaviors>
          <position x="3" y="3" z="3"></position>
          </camera>
          <scene>
          <clear-color r="0" g="0", b="0"></clear-color>
          </scene>
        </babylon>

编辑:我终于明白了!它只需要说清楚的颜色,我不敢相信这花了我这么长时间才弄明白,现在看起来很明显