A-Frame 嵌套平面元素未正确显示

A-Frame nested plane element not shown correctly

我有一个嵌套在另一个a平面中的a平面。

<a-plane width="10" height="5" color="#FFFFFF">
  <a-plane width="10" color="#000080"></a-plane>
</a-plane>

但是结果是这样的 我也用嵌套的 a-image 尝试过它并得到了相同的结果。我还尝试移除内部平面并将其添加到外部并添加到相同位置。但我总是得到相同的结果。

A-Frame 版本:0.9.2

您已将两个平面放置在相同的位置。渲染器不知道哪个应该在另一个前面(因为它们是平面并且它们的变换是相同的) - 因此你会遇到 z-fighting.

您需要定位其中一个平面,使它们不会重叠:

<a-plane>
  <a-plane position='0 0 -0.001'>
  </a-plane>
</a-plane>