antvis / G

💥 A flexible rendering engine for visualization.
https://g.antv.antgroup.com/
1.04k stars 192 forks source link

feat: support ar in webxr #1665

Closed xiaoiver closed 2 months ago

xiaoiver commented 3 months ago

🤔 This is a ...

🔗 Related issue link

1664

💡 Background and solution

参考 Three.js 的用法。提供默认的 ARButton:

import { ARButton } from '@antv/g-webgl';

const $button = ARButton.createButton(canvas, renderer, {});
container.appendChild($button);

点击后进入 AR 模式。

📝 Changelog

Language Changelog
🇺🇸 English
🇨🇳 Chinese

☑️ Self Check before Merge