# <vgl-sprite-material>
# Example Usage
<template>
<div>
<vgl-renderer antialias>
<template #scene>
<vgl-scene>
<vgl-sprite>
<template #material>
<vgl-sprite-material>
<template #map>
<vgl-texture>
<template #image>
<vgl-image src="./docs/img/star.gif" />
</template>
</vgl-texture>
</template>
</vgl-sprite-material>
</template>
</vgl-sprite>
</vgl-scene>
</template>
<template #camera>
<vgl-perspective-camera
position="spherical"
:position-radius="20"
:position-phi="1"
:position-theta="1"
rotation="lookAt"
/>
</template>
</vgl-renderer>
<aside class="control-panel">
<label>No effect<input type="range"></label>
</aside>
</div>
</template>
<script>
import * as components from 'vue-gl';
export default { components };
</script>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Props
name
: string
An arbitrary name of the instance.
Defaults to [object Object]side
: front | back | double
Defines which side of faces will be rendered.
Defaults to [object Object]vertexColors
: boolean
Defines whether vertex coloring is used.defines
: object
Custom defines to be injected into the shader.
Defaults to [object Object]fog
: boolean
Whether the material color is affected by global fog settings.color
: string|number
The material color multiplication.
Defaults to [object Object]rotation
: number
The sprite rotation in radians.
Defaults to [object Object]