A-Frame 介绍
A-Frame 是 Mozilla 开源的网页虚拟现实体验( WebVR )框架,可用于桌面、iPhone(即将支持安卓)以及 Oculus
Rift。A-Frame 可以让创建 WebVR 体验变得更简单。
A-Frame 设计成 web 开发者很熟悉的模样。它封装了 WebGL 的功能到 HTML
自定义元素,所以创建一个高性能的虚拟现实体验就像下列代码那样简单:
<html> <head> <script src="https://aframe.io/releases/latest/aframe.min.js"></script> </head> <body> <a-scene> <a-sky src="https://aframe.io/aframe/examples/_skies/lake.jpg"></a-sky> <a-model src="https://aframe.io/aframe/examples/showcase-composite/sculpture.dae" position="0 0 -2"></a-model> <a-image src="https://aframe.io/aframe/examples/showcase-composite/portland.png" width="1" height="0.35" position="-2 1.2 1"></a-image> </a-scene> </body> </html>
A-Frame 官网
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。