How to enable anti-aliasing in A-Frame?

家住魔仙堡 提交于 2019-12-23 12:35:19

问题


Anti-aliasing smooths jagged edges on curved lines and diagonals. How can I enable anti-aliasing on A-Frame?


回答1:


You can do:

<a-scene antialias="true">

Note that this does have a performance cost on higher resolution screens, but it is not determined whether that cost is a bottleneck.




回答2:


I think the previous answer is outdated. It is like this now.

<a-scene renderer="antialias: true">
 ...
</a-scene>

Docs



来源:https://stackoverflow.com/questions/39476791/how-to-enable-anti-aliasing-in-a-frame

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