【问题标题】:Aframe Image transparencyAframe 图像透明度
【发布时间】:2018-03-27 20:26:02
【问题描述】:

我是 A-frame 的新手 我想将具有透明度(.png)的图像添加到场景中。显然它们不能被覆盖。 我用

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

我得到了一个方形背景色。

The green image looks cut-cropped

【问题讨论】:

    标签: html image overlay transparency aframe


    【解决方案1】:

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

    这是一个示例 withwithout alpha-test

    【讨论】:

    • 谢谢!但是,“alpha-test:0.5”属性有点奇怪
    猜你喜欢
    • 1970-01-01
    • 2020-01-03
    • 2016-02-27
    • 1970-01-01
    • 1970-01-01
    • 2011-02-07
    • 2017-05-08
    相关资源
    最近更新 更多