1 | # VueGL
|
2 |
|
3 | [Vue.js](https://vuejs.org/) components rendering 3D WebGL graphics reactively with
|
4 | [three.js](https://threejs.org/).
|
5 |
|
6 | [![NPM](https://nodei.co/npm/vue-gl.png?compact=true)](https://nodei.co/npm/vue-gl/
|
7 | )
|
8 | [![Financial Contributors on Open Collective](https://opencollective.com/vue-gl/all/badge.svg?label=financial+contributors)](https://opencollective.com/vue-gl)
|
9 |
|
10 | ## Usage
|
11 |
|
12 | ```html
|
13 | <!-- Load scripts -->
|
14 | <script src="https://unpkg.com/vue"></script>
|
15 | <script src="https://unpkg.com/three"></script>
|
16 | <script src="https://unpkg.com/vue-gl"></script>
|
17 |
|
18 | <!-- Define canvas and objects -->
|
19 | <vgl-renderer id="my-canvas">
|
20 | <template #scene>
|
21 | <vgl-scene>
|
22 | <vgl-mesh>
|
23 | <template #geometry>
|
24 | <vgl-sphere-geometry></vgl-sphere-geometry>
|
25 | </template>
|
26 | <template #material>
|
27 | <vgl-mesh-basic-material></vgl-mesh-basic-material>
|
28 | </template>
|
29 | </vgl-mesh>
|
30 | </vgl-scene>
|
31 | </template>
|
32 | <template #camera>
|
33 | <vgl-perspective-camera position="spherical" :position-radius="5"></vgl-perspective-camera>
|
34 | </template>
|
35 | </vgl-renderer>
|
36 |
|
37 | <!-- Register components and start vue -->
|
38 | <script>
|
39 | new Vue({ el: "#my-canvas", components: VueGL });
|
40 | </script>
|
41 | ```
|
42 |
|
43 | [See the documentation](//vue-gl.github.io) for more information.
|
44 |
|
45 | ## Available components
|
46 |
|
47 | [Components reference](//vue-gl.github.io/components/) shows a list of available
|
48 | core components. [Example components reference](//vue-gl.github.io/examples/) also
|
49 | introduces additional components you can use immediately.
|
50 |
|
51 | The list of components not implemented yet can be found at [this project](https://github.com/vue-gl/vue-gl/projects/1).
|
52 |
|
53 | ## Contribution
|
54 |
|
55 | Are you interested in enhance this product?
|
56 | We're really glad and thanks a lot!
|
57 | See [Contributing guidelines](CONTRIBUTING.md) to get started.
|
58 |
|
59 | ### Code Contributors
|
60 |
|
61 | This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].
|
62 | <a href="https://github.com/vue-gl/vue-gl/graphs/contributors">
|
63 | <img src="https://opencollective.com/vue-gl/contributors.svg?width=890&button=false">
|
64 | </a>
|
65 |
|
66 | ### Financial Contributors
|
67 |
|
68 | Become a financial contributor and help us sustain our community. [[Contribute](https://opencollective.com/vue-gl/contribute)]
|
69 |
|
70 | #### Individuals
|
71 |
|
72 | <a href="https://opencollective.com/vue-gl"><img src="https://opencollective.com/vue-gl/individuals.svg?width=890"></a>
|
73 |
|
74 | #### Organizations
|
75 |
|
76 | Support this project with your organization. Your logo will show up here with a
|
77 | link to your website. [[Contribute](https://opencollective.com/vue-gl/contribute)]
|
78 |
|
79 | <a href="https://opencollective.com/vue-gl/organization/0/website"><img src="https://opencollective.com/vue-gl/organization/0/avatar.svg"></a>
|
80 | <a href="https://opencollective.com/vue-gl/organization/1/website"><img src="https://opencollective.com/vue-gl/organization/1/avatar.svg"></a>
|
81 | <a href="https://opencollective.com/vue-gl/organization/2/website"><img src="https://opencollective.com/vue-gl/organization/2/avatar.svg"></a>
|
82 | <a href="https://opencollective.com/vue-gl/organization/3/website"><img src="https://opencollective.com/vue-gl/organization/3/avatar.svg"></a>
|
83 | <a href="https://opencollective.com/vue-gl/organization/4/website"><img src="https://opencollective.com/vue-gl/organization/4/avatar.svg"></a>
|
84 | <a href="https://opencollective.com/vue-gl/organization/5/website"><img src="https://opencollective.com/vue-gl/organization/5/avatar.svg"></a>
|
85 | <a href="https://opencollective.com/vue-gl/organization/6/website"><img src="https://opencollective.com/vue-gl/organization/6/avatar.svg"></a>
|
86 | <a href="https://opencollective.com/vue-gl/organization/7/website"><img src="https://opencollective.com/vue-gl/organization/7/avatar.svg"></a>
|
87 | <a href="https://opencollective.com/vue-gl/organization/8/website"><img src="https://opencollective.com/vue-gl/organization/8/avatar.svg"></a>
|
88 | <a href="https://opencollective.com/vue-gl/organization/9/website"><img src="https://opencollective.com/vue-gl/organization/9/avatar.svg"></a>
|
89 |
|
90 | ## License
|
91 |
|
92 | [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fvue-gl%2Fvue-gl.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fvue-gl%2Fvue-gl?ref=badge_large)
|