Skip to content

Commit d59de8e

Browse files
authored
Docs:Manual lights.html typo (#29756)
* Docs:Manual lights.html typo * Docs:Manual lights.html code snippet intensity default 5
1 parent d067dfd commit d59de8e

File tree

7 files changed

+33
-33
lines changed

7 files changed

+33
-33
lines changed

manual/en/lights.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ <h2 id="-ambientlight-"><a href="/docs/#api/en/lights/AmbientLight"><code class=
149149
<p>And here's our code setting up lil-gui</p>
150150
<pre class="prettyprint showlinemods notranslate lang-js" translate="no">const gui = new GUI();
151151
gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('color');
152-
gui.add(light, 'intensity', 0, 2, 0.01);
152+
gui.add(light, 'intensity', 0, 5, 0.01);
153153
</pre>
154154
<p>And here's the result</p>
155155
<p></p><div translate="no" class="threejs_example_container notranslate">
@@ -188,7 +188,7 @@ <h2 id="-hemispherelight-"><a href="/docs/#api/en/lights/HemisphereLight"><code
188188
-gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('color');
189189
+gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('skyColor');
190190
+gui.addColor(new ColorGUIHelper(light, 'groundColor'), 'value').name('groundColor');
191-
gui.add(light, 'intensity', 0, 2, 0.01);
191+
gui.add(light, 'intensity', 0, 5, 0.01);
192192
</pre>
193193
<p>The result:</p>
194194
<p></p><div translate="no" class="threejs_example_container notranslate">
@@ -220,7 +220,7 @@ <h2 id="-directionallight-"><a href="/docs/#api/en/lights/DirectionalLight"><cod
220220
our GUI.</p>
221221
<pre class="prettyprint showlinemods notranslate lang-js" translate="no">const gui = new GUI();
222222
gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('color');
223-
gui.add(light, 'intensity', 0, 2, 0.01);
223+
gui.add(light, 'intensity', 0, 5, 0.01);
224224
gui.add(light.target.position, 'x', -10, 10);
225225
gui.add(light.target.position, 'z', -10, 10);
226226
gui.add(light.target.position, 'y', 0, 10);
@@ -266,7 +266,7 @@ <h2 id="-directionallight-"><a href="/docs/#api/en/lights/DirectionalLight"><cod
266266

267267
const gui = new GUI();
268268
gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('color');
269-
gui.add(light, 'intensity', 0, 2, 0.01);
269+
gui.add(light, 'intensity', 0, 5, 0.01);
270270

271271
+makeXYZGUI(gui, light.position, 'position', updateLight);
272272
+makeXYZGUI(gui, light.target.position, 'target', updateLight);
@@ -319,7 +319,7 @@ <h2 id="-pointlight-"><a href="/docs/#api/en/lights/PointLight"><code class="not
319319
<p>Let's setup the GUI so we can adjust the distance.</p>
320320
<pre class="prettyprint showlinemods notranslate lang-js" translate="no">const gui = new GUI();
321321
gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('color');
322-
gui.add(light, 'intensity', 0, 2, 0.01);
322+
gui.add(light, 'intensity', 0, 250, 1);
323323
+gui.add(light, 'distance', 0, 40).onChange(updateLight);
324324

325325
makeXYZGUI(gui, light.position, 'position', updateLight);

manual/examples/lights-directional.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@
135135
const gui = new GUI();
136136
gui.addColor( new ColorGUIHelper( light, 'color' ), 'value' ).name( 'color' );
137137
gui.add( light, 'intensity', 0, 5, 0.01 );
138-
gui.add( light.target.position, 'x', - 10, 10, .01 );
139-
gui.add( light.target.position, 'z', - 10, 10, .01 );
140-
gui.add( light.target.position, 'y', 0, 10, .01 );
138+
gui.add( light.target.position, 'x', - 10, 10 );
139+
gui.add( light.target.position, 'z', - 10, 10 );
140+
gui.add( light.target.position, 'y', 0, 10 );
141141

142142
}
143143

manual/fr/lights.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ <h2 id="-ambientlight-"><a href="/docs/#api/en/lights/AmbientLight"><code class=
127127
<p>Et voici le code de configuartion de lil-gui</p>
128128
<pre class="prettyprint showlinemods notranslate lang-js" translate="no">const gui = new GUI();
129129
gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('color');
130-
gui.add(light, 'intensity', 0, 2, 0.01);
130+
gui.add(light, 'intensity', 0, 5, 0.01);
131131
</pre>
132132
<p>Le résultat :</p>
133133
<p></p><div translate="no" class="threejs_example_container notranslate">
@@ -157,7 +157,7 @@ <h2 id="-hemispherelight-"><a href="/docs/#api/en/lights/HemisphereLight"><code
157157
-gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('color');
158158
+gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('skyColor');
159159
+gui.addColor(new ColorGUIHelper(light, 'groundColor'), 'value').name('groundColor');
160-
gui.add(light, 'intensity', 0, 2, 0.01);
160+
gui.add(light, 'intensity', 0, 5, 0.01);
161161
</pre>
162162
<p>Le resultat :</p>
163163
<p></p><div translate="no" class="threejs_example_container notranslate">
@@ -183,7 +183,7 @@ <h2 id="-directionallight-"><a href="/docs/#api/en/lights/DirectionalLight"><cod
183183
<p>Faisons en sorte que nous puissions déplacer la cible en l'ajoutant à lil-gui.</p>
184184
<pre class="prettyprint showlinemods notranslate lang-js" translate="no">const gui = new GUI();
185185
gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('color');
186-
gui.add(light, 'intensity', 0, 2, 0.01);
186+
gui.add(light, 'intensity', 0, 5, 0.01);
187187
gui.add(light.target.position, 'x', -10, 10);
188188
gui.add(light.target.position, 'z', -10, 10);
189189
gui.add(light.target.position, 'y', 0, 10);
@@ -218,7 +218,7 @@ <h2 id="-directionallight-"><a href="/docs/#api/en/lights/DirectionalLight"><cod
218218

219219
const gui = new GUI();
220220
gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('color');
221-
gui.add(light, 'intensity', 0, 2, 0.01);
221+
gui.add(light, 'intensity', 0, 5, 0.01);
222222

223223
+makeXYZGUI(gui, light.position, 'position', updateLight);
224224
+makeXYZGUI(gui, light.target.position, 'target', updateLight);
@@ -261,7 +261,7 @@ <h2 id="-pointlight-"><a href="/docs/#api/en/lights/PointLight"><code class="not
261261
<p>Mettons à jour lil-gui pour pouvoir modifier la distance.</p>
262262
<pre class="prettyprint showlinemods notranslate lang-js" translate="no">const gui = new GUI();
263263
gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('color');
264-
gui.add(light, 'intensity', 0, 2, 0.01);
264+
gui.add(light, 'intensity', 0, 250, 1);
265265
+gui.add(light, 'distance', 0, 40).onChange(updateLight);
266266

267267
makeXYZGUI(gui, light.position, 'position', updateLight);

manual/ja/lights.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ <h2 id="-ambientlight-"><code class="notranslate" translate="no">AmbientLight(
138138
<p>lil-guiの設定は以下の通りです。</p>
139139
<pre class="prettyprint showlinemods notranslate lang-js" translate="no">const gui = new GUI();
140140
gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('color');
141-
gui.add(light, 'intensity', 0, 2, 0.01);
141+
gui.add(light, 'intensity', 0, 5, 0.01);
142142
</pre>
143143
<p>これで以下のような結果になります。</p>
144144
<p></p><div translate="no" class="threejs_example_container notranslate">
@@ -171,7 +171,7 @@ <h2 id="-hemispherelight-"><code class="notranslate" translate="no">HemisphereLi
171171
-gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('color');
172172
+gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('skyColor');
173173
+gui.addColor(new ColorGUIHelper(light, 'groundColor'), 'value').name('groundColor');
174-
gui.add(light, 'intensity', 0, 2, 0.01);
174+
gui.add(light, 'intensity', 0, 5, 0.01);
175175
</pre>
176176
<p>これが結果です。</p>
177177
<p></p><div translate="no" class="threejs_example_container notranslate">
@@ -199,7 +199,7 @@ <h2 id="-directionallight-"><code class="notranslate" translate="no">Directional
199199
<p>GUIに追加してlight.targetを動かせるようにしてみましょう。</p>
200200
<pre class="prettyprint showlinemods notranslate lang-js" translate="no">const gui = new GUI();
201201
gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('color');
202-
gui.add(light, 'intensity', 0, 2, 0.01);
202+
gui.add(light, 'intensity', 0, 5, 0.01);
203203
gui.add(light.target.position, 'x', -10, 10);
204204
gui.add(light.target.position, 'z', -10, 10);
205205
gui.add(light.target.position, 'y', 0, 10);
@@ -238,7 +238,7 @@ <h2 id="-directionallight-"><code class="notranslate" translate="no">Directional
238238

239239
const gui = new GUI();
240240
gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('color');
241-
gui.add(light, 'intensity', 0, 2, 0.01);
241+
gui.add(light, 'intensity', 0, 5, 0.01);
242242

243243
+makeXYZGUI(gui, light.position, 'position', updateLight);
244244
+makeXYZGUI(gui, light.target.position, 'target', updateLight);
@@ -287,7 +287,7 @@ <h2 id="-pointlight-"><code class="notranslate" translate="no">PointLight(点
287287
<p>distanceを調整できるようにGUIを設定してみましょう。</p>
288288
<pre class="prettyprint showlinemods notranslate lang-js" translate="no">const gui = new GUI();
289289
gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('color');
290-
gui.add(light, 'intensity', 0, 2, 0.01);
290+
gui.add(light, 'intensity', 0, 250, 1);
291291
+gui.add(light, 'distance', 0, 40).onChange(updateLight);
292292

293293
makeXYZGUI(gui, light.position, 'position', updateLight);

manual/ko/lights.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ <h2 id="-ambientlight-"><a href="/docs/#api/ko/lights/AmbientLight"><code class=
139139
<p>아래는 lil-gui를 만드는 코드입니다.</p>
140140
<pre class="prettyprint showlinemods notranslate lang-js" translate="no">const gui = new GUI();
141141
gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('color');
142-
gui.add(light, 'intensity', 0, 2, 0.01);
142+
gui.add(light, 'intensity', 0, 5, 0.01);
143143
</pre>
144144
<p>결과물은 다음과 같죠.</p>
145145
<p></p><div translate="no" class="threejs_example_container notranslate">
@@ -173,7 +173,7 @@ <h2 id="-hemispherelight-"><a href="/docs/#api/ko/lights/HemisphereLight"><code
173173
-gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('color');
174174
+gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('skyColor');
175175
+gui.addColor(new ColorGUIHelper(light, 'groundColor'), 'value').name('groundColor');
176-
gui.add(light, 'intensity', 0, 2, 0.01);
176+
gui.add(light, 'intensity', 0, 5, 0.01);
177177
</pre>
178178
<p></p><div translate="no" class="threejs_example_container notranslate">
179179
<div><iframe class="threejs_example notranslate" translate="no" style=" " src="/manual/examples/resources/editor.html?url=/manual/examples/lights-hemisphere.html"></iframe></div>
@@ -202,7 +202,7 @@ <h2 id="-directionallight-"><a href="/docs/#api/ko/lights/DirectionalLight"><cod
202202
<p>이 역시 GUI를 사용해 목표의 위치를 조정할 수 있도록 만들겠습니다.</p>
203203
<pre class="prettyprint showlinemods notranslate lang-js" translate="no">const gui = new GUI();
204204
gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('color');
205-
gui.add(light, 'intensity', 0, 2, 0.01);
205+
gui.add(light, 'intensity', 0, 5, 0.01);
206206
gui.add(light.target.position, 'x', -10, 10);
207207
gui.add(light.target.position, 'z', -10, 10);
208208
gui.add(light.target.position, 'y', 0, 10);
@@ -246,7 +246,7 @@ <h2 id="-directionallight-"><a href="/docs/#api/ko/lights/DirectionalLight"><cod
246246

247247
const gui = new GUI();
248248
gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('color');
249-
gui.add(light, 'intensity', 0, 2, 0.01);
249+
gui.add(light, 'intensity', 0, 5, 0.01);
250250

251251
+makeXYZGUI(gui, light.position, 'position', updateLight);
252252
+makeXYZGUI(gui, light.target.position, 'target', updateLight);
@@ -297,7 +297,7 @@ <h2 id="-pointlight-"><a href="/docs/#api/ko/lights/PointLight"><code class="not
297297
<p>거리도 조정할 수 있도록 GUI에 추가하겠습니다.</p>
298298
<pre class="prettyprint showlinemods notranslate lang-js" translate="no">const gui = new GUI();
299299
gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('color');
300-
gui.add(light, 'intensity', 0, 2, 0.01);
300+
gui.add(light, 'intensity', 0, 250, 1);
301301
+gui.add(light, 'distance', 0, 40).onChange(updateLight);
302302

303303
makeXYZGUI(gui, light.position, 'position', updateLight);

manual/ru/lights.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ <h2 id="-ambientlight-"><a href="/docs/#api/en/lights/AmbientLight"><code class=
151151
<p>И вот наш код настройки lil-gui</p>
152152
<pre class="prettyprint showlinemods notranslate lang-js" translate="no">const gui = new GUI();
153153
gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('color');
154-
gui.add(light, 'intensity', 0, 2, 0.01);
154+
gui.add(light, 'intensity', 0, 5, 0.01);
155155
</pre>
156156
<p>И вот результат</p>
157157
<p></p><div translate="no" class="threejs_example_container notranslate">
@@ -188,7 +188,7 @@ <h2 id="-hemispherelight-"><a href="/docs/#api/en/lights/HemisphereLight"><code
188188
-gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('color');
189189
+gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('skyColor');
190190
+gui.addColor(new ColorGUIHelper(light, 'groundColor'), 'value').name('groundColor');
191-
gui.add(light, 'intensity', 0, 2, 0.01);
191+
gui.add(light, 'intensity', 0, 5, 0.01);
192192
</pre>
193193
<p>Результат:</p>
194194
<p></p><div translate="no" class="threejs_example_container notranslate">
@@ -219,7 +219,7 @@ <h2 id="-directionallight-"><a href="/docs/#api/en/lights/DirectionalLight"><cod
219219
добавляя ее в наш графический интерфейс.</p>
220220
<pre class="prettyprint showlinemods notranslate lang-js" translate="no">const gui = new GUI();
221221
gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('color');
222-
gui.add(light, 'intensity', 0, 2, 0.01);
222+
gui.add(light, 'intensity', 0, 5, 0.01);
223223
gui.add(light.target.position, 'x', -10, 10);
224224
gui.add(light.target.position, 'z', -10, 10);
225225
gui.add(light.target.position, 'y', 0, 10);
@@ -265,7 +265,7 @@ <h2 id="-directionallight-"><a href="/docs/#api/en/lights/DirectionalLight"><cod
265265

266266
const gui = new GUI();
267267
gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('color');
268-
gui.add(light, 'intensity', 0, 2, 0.01);
268+
gui.add(light, 'intensity', 0, 5, 0.01);
269269

270270
+makeXYZGUI(gui, light.position, 'position', updateLight);
271271
+makeXYZGUI(gui, light.target.position, 'target', updateLight);
@@ -316,7 +316,7 @@ <h2 id="-pointlight-"><a href="/docs/#api/en/lights/PointLight"><code class="not
316316
<p>Давайте настроим графический интерфейс, чтобы мы могли регулировать расстояние.</p>
317317
<pre class="prettyprint showlinemods notranslate lang-js" translate="no">const gui = new GUI();
318318
gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('color');
319-
gui.add(light, 'intensity', 0, 2, 0.01);
319+
gui.add(light, 'intensity', 0, 250, 1);
320320
+gui.add(light, 'distance', 0, 40).onChange(updateLight);
321321

322322
makeXYZGUI(gui, light.position, 'position', updateLight);

manual/zh/lights.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ <h2 id="-ambientlight-">环境光(<a href="/docs/#api/zh/lights/AmbientLight">
123123
<p>以及创建 lil-gui 的代码:</p>
124124
<pre class="prettyprint showlinemods notranslate lang-js" translate="no">const gui = new GUI();
125125
gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('color');
126-
gui.add(light, 'intensity', 0, 2, 0.01);
126+
gui.add(light, 'intensity', 0, 5, 0.01);
127127
</pre>
128128
<p>结果如下所示:</p>
129129
<p></p><div translate="no" class="threejs_example_container notranslate">
@@ -154,7 +154,7 @@ <h2 id="-hemispherelight-">半球光(<a href="/docs/#api/zh/lights/HemisphereL
154154
-gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('color');
155155
+gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('skyColor');
156156
+gui.addColor(new ColorGUIHelper(light, 'groundColor'), 'value').name('groundColor');
157-
gui.add(light, 'intensity', 0, 2, 0.01);
157+
gui.add(light, 'intensity', 0, 5, 0.01);
158158
</pre>
159159
<p>结果如下:</p>
160160
<p></p><div translate="no" class="threejs_example_container notranslate">
@@ -179,7 +179,7 @@ <h2 id="-directionallight-">方向光(<a href="/docs/#api/zh/lights/Directiona
179179
<p>下面代码是将目标点坐标属性添加到 <code class="notranslate" translate="no">lil-gui</code>,使得我们可以控制目标位置</p>
180180
<pre class="prettyprint showlinemods notranslate lang-js" translate="no">const gui = new GUI();
181181
gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('color');
182-
gui.add(light, 'intensity', 0, 2, 0.01);
182+
gui.add(light, 'intensity', 0, 5, 0.01);
183183
gui.add(light.target.position, 'x', -10, 10);
184184
gui.add(light.target.position, 'z', -10, 10);
185185
gui.add(light.target.position, 'y', 0, 10);
@@ -213,7 +213,7 @@ <h2 id="-directionallight-">方向光(<a href="/docs/#api/zh/lights/Directiona
213213

214214
const gui = new GUI();
215215
gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('color');
216-
gui.add(light, 'intensity', 0, 2, 0.01);
216+
gui.add(light, 'intensity', 0, 5, 0.01);
217217

218218
+makeXYZGUI(gui, light.position, 'position', updateLight);
219219
+makeXYZGUI(gui, light.target.position, 'target', updateLight);
@@ -256,7 +256,7 @@ <h2 id="-pointlight-">点光源(<a href="/docs/#api/zh/lights/PointLight"><cod
256256
<p>下面是添加对 distance 参数控制的代码:</p>
257257
<pre class="prettyprint showlinemods notranslate lang-js" translate="no">const gui = new GUI();
258258
gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('color');
259-
gui.add(light, 'intensity', 0, 2, 0.01);
259+
gui.add(light, 'intensity', 0, 250, 1);
260260
+gui.add(light, 'distance', 0, 40).onChange(updateLight);
261261

262262
makeXYZGUI(gui, light.position, 'position', updateLight);

0 commit comments

Comments
 (0)