Aframe envMap not applying to first primitive

我与影子孤独终老i 提交于 2019-12-24 06:49:32

问题


A cubic envMap seems to skip the first object it's applied to. Subsequent objects referencing the same map are fine. Reordering the objects in the HTML still results in which ever is first being skipped. Reordering in space has no effect.

https://github.com/scottmsinger/aframe/tree/master/tests/env_map_order


回答1:


Your cubemap tag is missing a close tag. That might be messing with the interpretation of the nextmost tag, causing the issue.

<a-assets>
    <a-cubemap id="sky">
        ...
    </a-cubemap> <-- Make sure to add this tag
</a-assets>  

If your html/xml editor of choice didn't warn you about this, I'd advice you to switch to a different editor, as it will save you a lot of debugging time. Even quick online tools like JSFiddle highlight XML tag mismatches.



来源:https://stackoverflow.com/questions/43555449/aframe-envmap-not-applying-to-first-primitive

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!