Skip to content

Commit 1d40f2a

Browse files
committed
add README
1 parent db572cf commit 1d40f2a

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# aframe-htmltexture-component
2+
3+
[![Version](https://img.shields.io/npm/v/aframe-htmltexture-component.svg)](https://preview.npmjs.com/package/aframe-htmltexture-component)
4+
[![Repo on GitHub](https://img.shields.io/badge/repo-GitHub-3D76C2.svg)](https://github.com/scenevr/aframe-htmltexture-component)
5+
6+
HTML Texture component for A-Frame VR.
7+
8+
![](./examples/example.png)
9+
10+
## Usage
11+
12+
Import it in your Javascript : `import 'aframe-htmltexture-component'`
13+
14+
```html
15+
<div id="hello">
16+
Hello <b>World !</b>
17+
</div>
18+
19+
<a-entity geometry="primitive: box" htmltexture="asset: #hello" position="0 2 -4" draw="width: 128; height: 512;"></a-entity>
20+
```
21+
22+

examples/example.png

36.9 KB
Loading

0 commit comments

Comments
 (0)