-
Notifications
You must be signed in to change notification settings - Fork 0
/
a-light.d.ts
111 lines (101 loc) · 2.79 KB
/
a-light.d.ts
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
/// <reference path="a-entity.d.ts" />
declare module JSX {
interface IntrinsicElements {
/**
* @see https://aframe.io/docs/1.3.0/primitives/a-light.html
*
* A light changes the lighting and shading of the scene.
*
* @example
* ```html
* <!-- Red directional light shining from the top left. -->
* <a-light color="red" position="-1 1 0"></a-light>
*
* <!-- Blue point light, 5 meters in the air. -->
* <a-light type="point" color="blue" position="0 5 0"></a-light>
*
* <!-- Dim ambient lighting. -->
* <a-light type="ambient" color="#222"></a-light>
*
* <!-- Probe light using the #pisa environment map -->
* <a-assets>
* <a-cubemap id="pisa">
* <img src="https://threejs.org/examples/textures/cube/pisa/px.png">
* <img src="https://threejs.org/examples/textures/cube/pisa/nx.png">
* <img src="https://threejs.org/examples/textures/cube/pisa/py.png">
* <img src="https://threejs.org/examples/textures/cube/pisa/ny.png">
* <img src="https://threejs.org/examples/textures/cube/pisa/pz.png">
* <img src="https://threejs.org/examples/textures/cube/pisa/nz.png">
* </a-cubemap>
* </a-assets>
*
* <a-light type="probe" envMap="#pisa"></a-light>
* ```
*
* |Attribute|Description|Default Value|
* |:-|:-|:-|
* |angle|light.angle|60|
* |color|light.color|#fff|
* |decay|light.decay|1|
* |distance|light.distance|0.0|
* |envmap|light.envMap|null|
* |ground-color|light.groundColor|#fff|
* |intensity|light.intensity|1.0|
* |penumbra|light.penumbra|0.0|
* |type|light.type|directional|
* |target|light.target|null|
*/
'a-light': {
/**
* light.angle
* @default "60"
*/
'angle'?: string;
/**
* light.color
* @default "#fff"
*/
'color'?: string;
/**
* light.decay
* @default "1"
*/
'decay'?: string;
/**
* light.distance
* @default "0.0"
*/
'distance'?: string;
/**
* light.envMap
* @default "null"
*/
'envmap'?: string;
/**
* light.groundColor
* @default "#fff"
*/
'ground-color'?: string;
/**
* light.intensity
* @default "1.0"
*/
'intensity'?: string;
/**
* light.penumbra
* @default "0.0"
*/
'penumbra'?: string;
/**
* light.type
* @default "directional"
*/
'type'?: string;
/**
* light.target
* @default "null"
*/
'target'?: string;
} | JSX.IntrinsicElements['a-entity'];
}
}