Skip to content

Commit 843270c

Browse files
authored
Merge pull request #19675 from gero3/addLightProbesDocumentation
Docs: Added AmbientLightProbe
2 parents 681ba71 + cd82644 commit 843270c

File tree

3 files changed

+92
-0
lines changed

3 files changed

+92
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<base href="../../../" />
6+
<script src="list.js"></script>
7+
<script src="page.js"></script>
8+
<link type="text/css" rel="stylesheet" href="page.css" />
9+
</head>
10+
<body>
11+
[page:Object3D] &rarr; [page:Light] &rarr; [page:LightProbe]
12+
13+
<h1>[name]</h1>
14+
15+
<p class="desc">
16+
Light probes are an alternative way of adding light to a 3D scene. AmbientLightProbe is the light estimation data
17+
of a single ambient light in the scene. For more information about light probes, go to [page:LightProbe].
18+
</p>
19+
20+
<h2>Constructor</h2>
21+
22+
<h3>[name]( [param:Color color], [param:Float intensity] )</h3>
23+
<p>
24+
[page:Color color] - (optional) An instance of Color, string representing a color or a number representing a color.<br />
25+
[page:Float intensity] - (optional) Numeric value of the light probe's intensity. Default is 1.<br /><br />
26+
27+
Creates a new [name].
28+
</p>
29+
30+
<h2>Properties</h2>
31+
<p>
32+
See the base [page:LightProbe LightProbe] class for common properties.
33+
</p>
34+
35+
<h2>Methods</h2>
36+
<p>
37+
See the base [page:LightProbe LightProbe] class for common methods.
38+
</p>
39+
<h2>Source</h2>
40+
41+
<p>
42+
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
43+
</p>
44+
</body>
45+
</html>
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<!DOCTYPE html>
2+
<html lang="zh">
3+
<head>
4+
<meta charset="utf-8" />
5+
<base href="../../../" />
6+
<script src="list.js"></script>
7+
<script src="page.js"></script>
8+
<link type="text/css" rel="stylesheet" href="page.css" />
9+
</head>
10+
<body>
11+
[page:Object3D] &rarr; [page:Light] &rarr; [page:LightProbe]
12+
13+
<h1>[name]</h1>
14+
15+
<p class="desc">
16+
Light probes are an alternative way of adding light to a 3D scene. AmbientLightProbe is the light estimation data
17+
of a single ambient light in the scene. For more information about light probes, go to [page:LightProbe].
18+
</p>
19+
20+
<h2>Constructor</h2>
21+
22+
<h3>[name]( [param:Color color], [param:Float intensity] )</h3>
23+
<p>
24+
[page:Color color] - (optional) An instance of Color, string representing a color or a number representing a color.<br />
25+
[page:Float intensity] - (optional) Numeric value of the light probe's intensity. Default is 1.<br /><br />
26+
27+
Creates a new [name].
28+
</p>
29+
30+
<h2>Properties</h2>
31+
<p>
32+
See the base [page:LightProbe LightProbe] class for common properties.
33+
</p>
34+
35+
<h2>Methods</h2>
36+
<p>
37+
See the base [page:LightProbe LightProbe] class for common methods.
38+
</p>
39+
<h2>Source</h2>
40+
41+
<p>
42+
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
43+
</p>
44+
</body>
45+
</html>

docs/list.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ var list = {
201201

202202
"Lights": {
203203
"AmbientLight": "api/en/lights/AmbientLight",
204+
"AmbientLightProbe": "api/en/lights/AmbientLightProbe",
204205
"DirectionalLight": "api/en/lights/DirectionalLight",
205206
"HemisphereLight": "api/en/lights/HemisphereLight",
206207
"Light": "api/en/lights/Light",
@@ -660,6 +661,7 @@ var list = {
660661

661662
"灯光": {
662663
"AmbientLight": "api/zh/lights/AmbientLight",
664+
"AmbientLightProbe": "api/zh/lights/AmbientLightProbe",
663665
"DirectionalLight": "api/zh/lights/DirectionalLight",
664666
"HemisphereLight": "api/zh/lights/HemisphereLight",
665667
"Light": "api/zh/lights/Light",

0 commit comments

Comments
 (0)