帧图像透明度

Aframe Image transparency

我是 A 型框架的新手 我想将具有透明度 (.png) 的图像添加到场景中。显然它们不能叠加。 我用

    <a-image position="0 0 -20" material="transparent: true" width="32" height="19" src="#img1"></a-image>

然后我得到了一个正方形的背景色。

The green image looks cut-cropped

如果没有 materialalpha-test:0.5 属性 设置,渲染器将无法正确找出哪个图像在另一个图像前面。

这里有一个例子with and without alpha-test