From e06e9892bdfd992132dae5605b045902b1544c95 Mon Sep 17 00:00:00 2001 From: Mugen87 Date: Thu, 2 Jan 2020 14:03:37 +0100 Subject: [PATCH] Docs: Clean up. --- docs/api/en/helpers/PointLightHelper.html | 4 ++- docs/api/en/lights/PointLight.html | 1 - docs/api/en/lights/SpotLight.html | 23 ++--------------- docs/api/en/loaders/BufferGeometryLoader.html | 4 ++- docs/api/en/loaders/TextureLoader.html | 6 +++-- .../en/materials/MeshDistanceMaterial.html | 4 ++- .../en/materials/MeshPhysicalMaterial.html | 8 +++--- docs/api/en/materials/ShadowMaterial.html | 5 +++- docs/api/en/materials/SpriteMaterial.html | 4 +-- docs/api/en/objects/InstancedMesh.html | 8 ++++-- docs/api/en/textures/DepthTexture.html | 4 ++- docs/api/zh/helpers/PointLightHelper.html | 4 ++- docs/api/zh/lights/PointLight.html | 9 +++---- docs/api/zh/lights/SpotLight.html | 25 +++---------------- docs/api/zh/loaders/BufferGeometryLoader.html | 4 ++- docs/api/zh/loaders/TextureLoader.html | 6 +++-- .../zh/materials/MeshDistanceMaterial.html | 4 ++- .../zh/materials/MeshPhysicalMaterial.html | 9 ++++--- docs/api/zh/materials/ShadowMaterial.html | 5 +++- docs/api/zh/materials/SpriteMaterial.html | 4 +-- docs/api/zh/objects/InstancedMesh.html | 8 ++++-- docs/api/zh/textures/DepthTexture.html | 5 ++-- .../examples/en/geometries/DecalGeometry.html | 2 +- docs/examples/en/math/Lut.html | 2 +- docs/examples/en/objects/Lensflare.html | 9 +++---- .../examples/zh/geometries/DecalGeometry.html | 2 +- docs/examples/zh/math/Lut.html | 2 +- docs/examples/zh/objects/Lensflare.html | 9 +++---- .../manual/en/introduction/Creating-text.html | 9 ++++--- .../manual/zh/introduction/Creating-text.html | 9 ++++--- 30 files changed, 99 insertions(+), 99 deletions(-) diff --git a/docs/api/en/helpers/PointLightHelper.html b/docs/api/en/helpers/PointLightHelper.html index 9761e0d7c1..b85a84050b 100644 --- a/docs/api/en/helpers/PointLightHelper.html +++ b/docs/api/en/helpers/PointLightHelper.html @@ -20,7 +20,9 @@

Example

- [example:webgl_helpers WebGL / helpers] +

+ [example:webgl_helpers WebGL / helpers] +

var pointLight = new THREE.PointLight( 0xff0000, 1, 100 ); diff --git a/docs/api/en/lights/PointLight.html b/docs/api/en/lights/PointLight.html index 5fad479442..9810382374 100644 --- a/docs/api/en/lights/PointLight.html +++ b/docs/api/en/lights/PointLight.html @@ -25,7 +25,6 @@

[example:webgl_lights_pointlights lights / pointlights ]
[example:webgl_lights_pointlights2 lights / pointlights2 ]
- [example:webgldeferred_animation animation ]
[example:webgl_effects_anaglyph effects / anaglyph ]
[example:webgl_geometry_text geometry / text ]
[example:webgl_lensflares lensflares ] diff --git a/docs/api/en/lights/SpotLight.html b/docs/api/en/lights/SpotLight.html index 1985744618..5d568d1860 100644 --- a/docs/api/en/lights/SpotLight.html +++ b/docs/api/en/lights/SpotLight.html @@ -19,30 +19,11 @@ This light can cast shadows - see the [page:SpotLightShadow] page for details.

- - -

Example

- -

- [example:webgl_lights_spotlight View in Examples ] -

- -

Other Examples

-

- [example:webgl_interactive_cubes_gpu interactive / cubes / gpu ]
- [example:webgl_interactive_draggablecubes interactive / draggablecubes ]
- [example:webgl_materials_bumpmap_skin materials / bumpmap / skin ]
- [example:webgl_materials_cubemap_dynamic materials / cubemap / dynamic ]
- [example:webgl_loader_md2 loader / md2 ]
- [example:webgl_shading_physical shading / physical ]
- [example:webgl_materials_bumpmap materials / bumpmap]
- [example:webgl_shading_physical shading / physical]
- [example:webgl_shadowmap shadowmap]
- [example:webgl_shadowmap_performance shadowmap / performance]
- [example:webgl_shadowmap_viewer shadowmap / viewer] + [example:webgl_lights_spotlight lights / spotlight ]
+ [example:webgl_lights_spotlights lights / spotlights ]

Code Example

diff --git a/docs/api/en/loaders/BufferGeometryLoader.html b/docs/api/en/loaders/BufferGeometryLoader.html index d2d9154f92..53ee3776b2 100644 --- a/docs/api/en/loaders/BufferGeometryLoader.html +++ b/docs/api/en/loaders/BufferGeometryLoader.html @@ -19,7 +19,9 @@

Example

- [example:webgl_geometry_colors_lookuptable WebGL / geometry / colors / lookuptable] +

+ [example:webgl_performance WebGL / performance] +

// instantiate a loader diff --git a/docs/api/en/loaders/TextureLoader.html b/docs/api/en/loaders/TextureLoader.html index 66d1af939e..e0246f103e 100644 --- a/docs/api/en/loaders/TextureLoader.html +++ b/docs/api/en/loaders/TextureLoader.html @@ -19,6 +19,10 @@

Example

+

+ [example:webgl_geometry_cube geometry / cube] +

+ var texture = new THREE.TextureLoader().load( 'textures/land_ocean_ice_cloud_2048.jpg' ); @@ -26,8 +30,6 @@ var material = new THREE.MeshBasicMaterial( { map: texture } ); - [example:webgl_geometry_cube geometry / cube] -

Example with Callbacks

diff --git a/docs/api/en/materials/MeshDistanceMaterial.html b/docs/api/en/materials/MeshDistanceMaterial.html index bfea4e376e..f59c64fa94 100644 --- a/docs/api/en/materials/MeshDistanceMaterial.html +++ b/docs/api/en/materials/MeshDistanceMaterial.html @@ -21,7 +21,9 @@

Example

- [example:webgl_shadowmap_pointlight WebGL / shadowmap / pointlight] +

+ [example:webgl_shadowmap_pointlight WebGL / shadowmap / pointlight] +

Examples

- [example:webgl_materials_variations_physical materials / variations / physical]
- [example:webgl_materials_reflectivity materials / reflectivity] +

+ [example:webgl_materials_variations_physical materials / variations / physical]
+ [example:webgl_materials_reflectivity materials / reflectivity] +

Constructor

@@ -70,7 +72,7 @@ 'STANDARD': '' 'PHYSICAL': '', - + };
diff --git a/docs/api/en/materials/ShadowMaterial.html b/docs/api/en/materials/ShadowMaterial.html index b85845d394..f92d0ff84f 100644 --- a/docs/api/en/materials/ShadowMaterial.html +++ b/docs/api/en/materials/ShadowMaterial.html @@ -17,7 +17,10 @@

Example

- [example:webgl_geometry_spline_editor geometry / spline / editor] + +

+ [example:webgl_geometry_spline_editor geometry / spline / editor] +

var planeGeometry = new THREE.PlaneGeometry( 2000, 2000 ); diff --git a/docs/api/en/materials/SpriteMaterial.html b/docs/api/en/materials/SpriteMaterial.html index b2c17afc9c..df44f64aa8 100644 --- a/docs/api/en/materials/SpriteMaterial.html +++ b/docs/api/en/materials/SpriteMaterial.html @@ -15,12 +15,12 @@

A material for a use with a [page:Sprite].

Examples

-
+

[example:webgl_sprites WebGL / sprites]
[example:software_sandbox software / sandbox]
[example:svg_sandbox svg / sandbox]
[example:webgl_materials_cubemap_dynamic webgl / materials / cubemap / dynamic] -

+

var spriteMap = new THREE.TextureLoader().load( 'textures/sprite.png' ); diff --git a/docs/api/en/objects/InstancedMesh.html b/docs/api/en/objects/InstancedMesh.html index a58354fe1a..da7004baad 100644 --- a/docs/api/en/objects/InstancedMesh.html +++ b/docs/api/en/objects/InstancedMesh.html @@ -18,10 +18,14 @@ to reduce the number of draw calls and thus improve the overall rendering performance in your application.

-

Example

+

Examples

- [example:webgl_instancing_suzanne WebGL / instancing / suzanne]
+ [example:webgl_instancing_dynamic WebGL / instancing / dynamic]
+ [example:webgl_instancing_modified WebGL / instancing / modified]
+ [example:webgl_instancing_performance WebGL / instancing / performance]
+ [example:webgl_instancing_scatter WebGL / instancing / scatter]
+ [example:webgl_instancing_raycast WebGL / instancing / raycast]

Constructor

diff --git a/docs/api/en/textures/DepthTexture.html b/docs/api/en/textures/DepthTexture.html index 9c518d02c9..20fa68e3f0 100644 --- a/docs/api/en/textures/DepthTexture.html +++ b/docs/api/en/textures/DepthTexture.html @@ -19,7 +19,9 @@

Example

- [example:webgl_depth_texture depth / texture] +

+ [example:webgl_depth_texture depth / texture] +

Constructor

[name]( [param:Number width], [param:Number height], [param:Constant type], [param:Constant wrapS], [param:Constant wrapT], [param:Constant magFilter], [param:Constant minFilter], [param:Number anisotropy], [param:Constant format] )

diff --git a/docs/api/zh/helpers/PointLightHelper.html b/docs/api/zh/helpers/PointLightHelper.html index 6999999a92..30c7da3e6c 100644 --- a/docs/api/zh/helpers/PointLightHelper.html +++ b/docs/api/zh/helpers/PointLightHelper.html @@ -20,7 +20,9 @@

例子

- [example:webgl_helpers WebGL / helpers] +

+ [example:webgl_helpers WebGL / helpers] +

var pointLight = new THREE.PointLight( 0xff0000, 1, 100 ); diff --git a/docs/api/zh/lights/PointLight.html b/docs/api/zh/lights/PointLight.html index f3251a6cba..fe41226269 100644 --- a/docs/api/zh/lights/PointLight.html +++ b/docs/api/zh/lights/PointLight.html @@ -24,7 +24,6 @@

[example:webgl_lights_pointlights lights / pointlights ]
[example:webgl_lights_pointlights2 lights / pointlights2 ]
- [example:webgldeferred_animation animation ]
[example:webgl_effects_anaglyph effects / anaglyph ]
[example:webgl_geometry_text geometry / text ]
[example:webgl_lensflares lensflares ] @@ -46,7 +45,7 @@ scene.add( light ); [page:Number distance] - 这个距离表示从光源到光照强度为0的位置。 当设置为0时,光永远不会消失(距离无穷大)。缺省值 0.
[page:Float decay] - 沿着光照距离的衰退量。缺省值 1。 - + 在 [page:WebGLRenderer.physicallyCorrectLights physically correct] 模式中,decay = 2。

创建一个新的点光源(PointLight)。 @@ -75,7 +74,7 @@ scene.add( light ); 光功率
在 [page:WebGLRenderer.physicallyCorrectLights physically correct] 模式中, 表示以"流明(光通量单位)"为单位的光功率。 缺省值 - *4Math.PI*。

- + 该值与 [page:.intensity intensity] 直接关联 power = intensity * 4π @@ -86,9 +85,9 @@ scene.add( light );

[property:LightShadow shadow]

[page:LightShadow]用与计算此光照的阴影。

- + 此对象的摄像机被设置为 [page:PerspectiveCamera.fov fov] 为90度,[page:PerspectiveCamera.aspect aspect]为1 - ,近裁剪面 [page:PerspectiveCamera.near near] 为0,远裁剪面[page:PerspectiveCamera.far far] + ,近裁剪面 [page:PerspectiveCamera.near near] 为0,远裁剪面[page:PerspectiveCamera.far far] 为500的透视摄像机 [page:PerspectiveCamera]。

diff --git a/docs/api/zh/lights/SpotLight.html b/docs/api/zh/lights/SpotLight.html index 07a44d5f5c..450ef7cafd 100644 --- a/docs/api/zh/lights/SpotLight.html +++ b/docs/api/zh/lights/SpotLight.html @@ -18,30 +18,11 @@ 该光源可以投射阴影 - 跳转至 [page:SpotLightShadow] 查看更多细节。

- - -

示例

- -

- [example:webgl_lights_spotlight View in Examples ] -

- -

其他例子

-

- [example:webgl_interactive_cubes_gpu interactive / cubes / gpu ]
- [example:webgl_interactive_draggablecubes interactive / draggablecubes ]
- [example:webgl_materials_bumpmap_skin materials / bumpmap / skin ]
- [example:webgl_materials_cubemap_dynamic materials / cubemap / dynamic ]
- [example:webgl_loader_md2 loader / md2 ]
- [example:webgl_shading_physical shading / physical ]
- [example:webgl_materials_bumpmap materials / bumpmap]
- [example:webgl_shading_physical shading / physical]
- [example:webgl_shadowmap shadowmap]
- [example:webgl_shadowmap_performance shadowmap / performance]
- [example:webgl_shadowmap_viewer shadowmap / viewer] + [example:webgl_lights_spotlight lights / spotlight ]
+ [example:webgl_lights_spotlights lights / spotlights ]

代码示例

@@ -124,7 +105,7 @@ 光功率
在 [page:WebGLRenderer.physicallyCorrectLights physically correct] 模式中, 表示以"流明(光通量单位)"为单位的光功率。 缺省值 - *4Math.PI*。

- + 该值与 [page:.intensity intensity] 直接关联 power = intensity * 4π diff --git a/docs/api/zh/loaders/BufferGeometryLoader.html b/docs/api/zh/loaders/BufferGeometryLoader.html index 71d97ff360..1a80e0060d 100644 --- a/docs/api/zh/loaders/BufferGeometryLoader.html +++ b/docs/api/zh/loaders/BufferGeometryLoader.html @@ -19,7 +19,9 @@

例子

- [example:webgl_geometry_colors_lookuptable WebGL / geometry / colors / lookuptable] +

+ [example:webgl_performance WebGL / performance] +

// 初始化一个加载器 diff --git a/docs/api/zh/loaders/TextureLoader.html b/docs/api/zh/loaders/TextureLoader.html index 8cd7af5df3..1d594b07e6 100644 --- a/docs/api/zh/loaders/TextureLoader.html +++ b/docs/api/zh/loaders/TextureLoader.html @@ -19,6 +19,10 @@

例子

+

+ [example:webgl_geometry_cube geometry / cube] +

+ var texture = new THREE.TextureLoader().load( 'textures/land_ocean_ice_cloud_2048.jpg' ); @@ -26,8 +30,6 @@ var material = new THREE.MeshBasicMaterial( { map: texture } ); - [example:webgl_geometry_cube geometry / cube] -

Example with Callbacks

diff --git a/docs/api/zh/materials/MeshDistanceMaterial.html b/docs/api/zh/materials/MeshDistanceMaterial.html index 3b470a8bc3..32ce7cbe4a 100644 --- a/docs/api/zh/materials/MeshDistanceMaterial.html +++ b/docs/api/zh/materials/MeshDistanceMaterial.html @@ -21,7 +21,9 @@

示例

- [example:webgl_shadowmap_pointlight WebGL / shadowmap / pointlight] +

+ [example:webgl_shadowmap_pointlight WebGL / shadowmap / pointlight] +

例子(Examples)

- [example:webgl_materials_variations_physical materials / variations / physical]
- [example:webgl_materials_reflectivity materials / reflectivity] + +

+ [example:webgl_materials_variations_physical materials / variations / physical]
+ [example:webgl_materials_reflectivity materials / reflectivity] +

构造函数(Constructor)

@@ -65,7 +68,7 @@ 'STANDARD': '' 'PHYSICAL': '', - + };
[page:WebGLRenderer]使用它来选择shaders。 diff --git a/docs/api/zh/materials/ShadowMaterial.html b/docs/api/zh/materials/ShadowMaterial.html index 9983fff87a..afabf7b5ea 100644 --- a/docs/api/zh/materials/ShadowMaterial.html +++ b/docs/api/zh/materials/ShadowMaterial.html @@ -17,7 +17,10 @@

例子(Example)

- [example:webgl_geometry_spline_editor geometry / spline / editor] + +

+ [example:webgl_geometry_spline_editor geometry / spline / editor] +

var planeGeometry = new THREE.PlaneGeometry( 2000, 2000 ); diff --git a/docs/api/zh/materials/SpriteMaterial.html b/docs/api/zh/materials/SpriteMaterial.html index c3de04d2e6..4a809f66ef 100644 --- a/docs/api/zh/materials/SpriteMaterial.html +++ b/docs/api/zh/materials/SpriteMaterial.html @@ -15,12 +15,12 @@

一种使用[page:Sprite]的材质。

例子(Examples)

-
+

[example:webgl_sprites WebGL / sprites]
[example:software_sandbox software / sandbox]
[example:svg_sandbox svg / sandbox]
[example:webgl_materials_cubemap_dynamic webgl / materials / cubemap / dynamic] -

+

var spriteMap = new THREE.TextureLoader().load( 'textures/sprite.png' ); diff --git a/docs/api/zh/objects/InstancedMesh.html b/docs/api/zh/objects/InstancedMesh.html index a58354fe1a..da7004baad 100644 --- a/docs/api/zh/objects/InstancedMesh.html +++ b/docs/api/zh/objects/InstancedMesh.html @@ -18,10 +18,14 @@ to reduce the number of draw calls and thus improve the overall rendering performance in your application.

-

Example

+

Examples

- [example:webgl_instancing_suzanne WebGL / instancing / suzanne]
+ [example:webgl_instancing_dynamic WebGL / instancing / dynamic]
+ [example:webgl_instancing_modified WebGL / instancing / modified]
+ [example:webgl_instancing_performance WebGL / instancing / performance]
+ [example:webgl_instancing_scatter WebGL / instancing / scatter]
+ [example:webgl_instancing_raycast WebGL / instancing / raycast]

Constructor

diff --git a/docs/api/zh/textures/DepthTexture.html b/docs/api/zh/textures/DepthTexture.html index 0ccae83c7e..81364e496d 100644 --- a/docs/api/zh/textures/DepthTexture.html +++ b/docs/api/zh/textures/DepthTexture.html @@ -17,8 +17,9 @@

示例

- - [example:webgl_depth_texture depth / texture] +

+ [example:webgl_depth_texture depth / texture] +

构造函数

[name]( [param:Number width], [param:Number height], [param:Constant type], [param:Constant wrapS], [param:Constant wrapT], [param:Constant magFilter], [param:Constant minFilter], [param:Number anisotropy], [param:Constant format] )

diff --git a/docs/examples/en/geometries/DecalGeometry.html b/docs/examples/en/geometries/DecalGeometry.html index 1ce4343d53..2d7a06f437 100644 --- a/docs/examples/en/geometries/DecalGeometry.html +++ b/docs/examples/en/geometries/DecalGeometry.html @@ -32,7 +32,7 @@

Example

-

[example:webgl_decals decals ]

+

[example:webgl_decals WebGL / decals]

var geometry = new THREE.DecalGeometry( mesh, position, orientation, size ); var material = new THREE.MeshBasicMaterial( { color: 0x00ff00 } ); diff --git a/docs/examples/en/math/Lut.html b/docs/examples/en/math/Lut.html index 30ba06af8f..9a498300a6 100644 --- a/docs/examples/en/math/Lut.html +++ b/docs/examples/en/math/Lut.html @@ -2,7 +2,7 @@ - + diff --git a/docs/examples/en/objects/Lensflare.html b/docs/examples/en/objects/Lensflare.html index 79391c1c64..a7fb7ebdd4 100644 --- a/docs/examples/en/objects/Lensflare.html +++ b/docs/examples/en/objects/Lensflare.html @@ -19,9 +19,10 @@

Example

- [example:webgl_lensflares lensflares] + [example:webgl_lensflares WebGL / lensflares] +

- + var light = new THREE.PointLight( 0xffffff, 1.5, 2000 ); var textureLoader = new THREE.TextureLoader(); @@ -37,9 +38,7 @@ lensflare.addElement( new THREE.LensflareElement( textureFlare1, 512, 0 ) ); lensflare.addElement( new THREE.LensflareElement( textureFlare2, 60, 0.6 ) ); light.add( lensflare ); - - -

+

Constructor

diff --git a/docs/examples/zh/geometries/DecalGeometry.html b/docs/examples/zh/geometries/DecalGeometry.html index 1ce4343d53..2d7a06f437 100644 --- a/docs/examples/zh/geometries/DecalGeometry.html +++ b/docs/examples/zh/geometries/DecalGeometry.html @@ -32,7 +32,7 @@

Example

-

[example:webgl_decals decals ]

+

[example:webgl_decals WebGL / decals]

var geometry = new THREE.DecalGeometry( mesh, position, orientation, size ); var material = new THREE.MeshBasicMaterial( { color: 0x00ff00 } ); diff --git a/docs/examples/zh/math/Lut.html b/docs/examples/zh/math/Lut.html index 30ba06af8f..9a498300a6 100644 --- a/docs/examples/zh/math/Lut.html +++ b/docs/examples/zh/math/Lut.html @@ -2,7 +2,7 @@ - + diff --git a/docs/examples/zh/objects/Lensflare.html b/docs/examples/zh/objects/Lensflare.html index 1d57b83707..cf9b46cf4d 100644 --- a/docs/examples/zh/objects/Lensflare.html +++ b/docs/examples/zh/objects/Lensflare.html @@ -19,9 +19,10 @@

示例

- [example:webgl_lensflares lensflares] + [example:webgl_lensflares WebGL / lensflares] +

- + var light = new THREE.PointLight( 0xffffff, 1.5, 2000 ); var textureLoader = new THREE.TextureLoader(); @@ -37,9 +38,7 @@ lensflare.addElement( new THREE.LensflareElement( textureFlare1, 512, 0 ) ); lensflare.addElement( new THREE.LensflareElement( textureFlare2, 60, 0.6 ) ); light.add( lensflare ); - - -

+

Constructor

diff --git a/docs/manual/en/introduction/Creating-text.html b/docs/manual/en/introduction/Creating-text.html index 77b9880249..223ae0f246 100644 --- a/docs/manual/en/introduction/Creating-text.html +++ b/docs/manual/en/introduction/Creating-text.html @@ -76,14 +76,17 @@

Examples

- [example:webgl_geometry_text WebGL / geometry / text]
- [example:webgl_shadowmap WebGL / shadowmap] + +

+ [example:webgl_geometry_text WebGL / geometry / text]
+ [example:webgl_shadowmap WebGL / shadowmap] +

If Typeface is down, or you want to use a font that is not there, there's a tutorial with a python script for blender that allows you to export text to Three.js's JSON format: [link:http://www.jaanga.com/2012/03/blender-to-threejs-create-3d-text-with.html] -

+

diff --git a/docs/manual/zh/introduction/Creating-text.html b/docs/manual/zh/introduction/Creating-text.html index 825f91cd58..d21c93de6b 100644 --- a/docs/manual/zh/introduction/Creating-text.html +++ b/docs/manual/zh/introduction/Creating-text.html @@ -70,14 +70,15 @@

示例

- [example:webgl_geometry_text WebGL / geometry / text]
- [example:canvas_geometry_text canvas / geometry / text]
- [example:webgl_shadowmap WebGL / shadowmap] +

+ [example:webgl_geometry_text WebGL / geometry / text]
+ [example:webgl_shadowmap WebGL / shadowmap] +

如果Typeface已经关闭,或者没有你所想使用的字体,这有一个教程:[link:http://www.jaanga.com/2012/03/blender-to-threejs-create-3d-text-with.html]
这是一个在blender上运行的python脚本,能够让你将文字导出为Three.js的JSON格式。 -

+

-- GitLab