You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*Note*: Currently for target property to work properly, it must be part of the [page:Scene scene], e.g. this will help: <code>scene.add( light.target )</code>
75
75
</div>
76
-
76
+
77
77
<h3>[property:Float intensity]</h3>
78
78
<div>
79
79
Light's intensity.<br/>
80
80
Default — *1.0*.
81
81
</div>
82
-
82
+
83
83
<h3>[property:Float distance]</h3>
84
84
<div>
85
85
If non-zero, light will attenuate linearly from maximum intensity at light *position* down to zero at *distance*.<br/>
86
86
Default — *0.0*.
87
87
</div>
88
-
88
+
89
89
<h3>[property:Float angle]</h3>
90
90
<div>
91
91
Maximum extent of the spotlight, in radians, from its direction. Should be no more than *Math.PI/2*.<br/>
92
92
Default — *Math.PI/3*.
93
93
</div>
94
-
94
+
95
95
<h3>[property:Float exponent]</h3>
96
96
<div>
97
97
Rapidity of the falloff of light from its target direction. A lower value spreads out the light, while a higher
98
98
focuses it towards the center.<br/>
99
99
Default — *10.0*.
100
100
</div>
101
-
101
+
102
102
<h3>[property:Float decay]</h3>
103
103
<div>
104
104
The amount the light dims along the distance of the light<br/>
105
105
Default — *1*.
106
106
</div>
107
-
107
+
108
108
<h3>[property:Boolean castShadow]</h3>
109
109
<div>
110
110
If set to *true* light will cast dynamic shadows. *Warning*: This is expensive and requires tweaking to get shadows looking right.<br/>
111
111
Default — *false*.
112
112
</div>
113
-
114
-
<h3>[property:Boolean onlyShadow]</h3>
115
-
<div>
116
-
If set to *true* light will only cast shadow but not contribute any lighting (as if *intensity* was 0 but cheaper to compute).<br/>
117
-
Default — *false*.
118
-
</div>
119
-
113
+
120
114
<h3>[property:Float shadowCameraNear]</h3>
121
115
<div>
122
116
Perspective shadow camera frustum <em>near</em> parameter.<br/>
0 commit comments