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 9761e0d7c1ba0f..b85a84050b2aae 100644 --- a/docs/api/en/helpers/PointLightHelper.html +++ b/docs/api/en/helpers/PointLightHelper.html @@ -20,7 +20,9 @@

[name]

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 5fad479442b892..98103823742023 100644 --- a/docs/api/en/lights/PointLight.html +++ b/docs/api/en/lights/PointLight.html @@ -25,7 +25,6 @@

Example

[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 198574461826a1..5d568d1860b840 100644 --- a/docs/api/en/lights/SpotLight.html +++ b/docs/api/en/lights/SpotLight.html @@ -19,30 +19,11 @@

[name]

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 d2d9154f9230ca..53ee3776b22cae 100644 --- a/docs/api/en/loaders/BufferGeometryLoader.html +++ b/docs/api/en/loaders/BufferGeometryLoader.html @@ -19,7 +19,9 @@

[name]

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 66d1af939ebd51..e0246f103e424e 100644 --- a/docs/api/en/loaders/TextureLoader.html +++ b/docs/api/en/loaders/TextureLoader.html @@ -19,6 +19,10 @@

[name]

Example

+

+ [example:webgl_geometry_cube geometry / cube] +

+ var texture = new THREE.TextureLoader().load( 'textures/land_ocean_ice_cloud_2048.jpg' ); @@ -26,8 +30,6 @@

Example

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 bfea4e376e74b9..f59c64fa94fdec 100644 --- a/docs/api/en/materials/MeshDistanceMaterial.html +++ b/docs/api/en/materials/MeshDistanceMaterial.html @@ -21,7 +21,9 @@

[name]

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 @@

[property:Object defines]

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

[name]

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 b2c17afc9c4d0c..df44f64aa8eacc 100644 --- a/docs/api/en/materials/SpriteMaterial.html +++ b/docs/api/en/materials/SpriteMaterial.html @@ -15,12 +15,12 @@

[name]

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 a58354fe1ad810..da7004baad8f60 100644 --- a/docs/api/en/objects/InstancedMesh.html +++ b/docs/api/en/objects/InstancedMesh.html @@ -18,10 +18,14 @@

[name]

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 9c518d02c9b90c..20fa68e3f0ba35 100644 --- a/docs/api/en/textures/DepthTexture.html +++ b/docs/api/en/textures/DepthTexture.html @@ -19,7 +19,9 @@

[name]

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 6999999a9231fa..30c7da3e6cbcd6 100644 --- a/docs/api/zh/helpers/PointLightHelper.html +++ b/docs/api/zh/helpers/PointLightHelper.html @@ -20,7 +20,9 @@

[name]

例子

- [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 f3251a6cba652f..fe41226269c369 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 @@

[name]( [param:Integer color], [param:Float intensity], [param:Number distan [page:Number distance] - 这个距离表示从光源到光照强度为0的位置。 当设置为0时,光永远不会消失(距离无穷大)。缺省值 0.
[page:Float decay] - 沿着光照距离的衰退量。缺省值 1。 - + 在 [page:WebGLRenderer.physicallyCorrectLights physically correct] 模式中,decay = 2。

创建一个新的点光源(PointLight)。 @@ -75,7 +74,7 @@

[property:Float power]

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

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

[property:Float power]

[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 07a44d5f5c7bad..450ef7cafdc862 100644 --- a/docs/api/zh/lights/SpotLight.html +++ b/docs/api/zh/lights/SpotLight.html @@ -18,30 +18,11 @@

聚光灯([name])

该光源可以投射阴影 - 跳转至 [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 @@

[property:Float power]

光功率
在 [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 71d97ff360d7ba..1a80e0060d219c 100644 --- a/docs/api/zh/loaders/BufferGeometryLoader.html +++ b/docs/api/zh/loaders/BufferGeometryLoader.html @@ -19,7 +19,9 @@

[name]

例子

- [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 8cd7af5df33115..1d594b07e64e09 100644 --- a/docs/api/zh/loaders/TextureLoader.html +++ b/docs/api/zh/loaders/TextureLoader.html @@ -19,6 +19,10 @@

[name]

例子

+

+ [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 3b470a8bc31a0a..32ce7cbe4ab329 100644 --- a/docs/api/zh/materials/MeshDistanceMaterial.html +++ b/docs/api/zh/materials/MeshDistanceMaterial.html @@ -21,7 +21,9 @@

[name]

示例

- [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 @@

[property:Object defines]

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

阴影材质([name])

例子(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 c3de04d2e67300..4a809f66efbb2d 100644 --- a/docs/api/zh/materials/SpriteMaterial.html +++ b/docs/api/zh/materials/SpriteMaterial.html @@ -15,12 +15,12 @@

点精灵材质([name])

一种使用[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 a58354fe1ad810..da7004baad8f60 100644 --- a/docs/api/zh/objects/InstancedMesh.html +++ b/docs/api/zh/objects/InstancedMesh.html @@ -18,10 +18,14 @@

[name]

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 0ccae83c7e51a1..81364e496d399c 100644 --- a/docs/api/zh/textures/DepthTexture.html +++ b/docs/api/zh/textures/DepthTexture.html @@ -17,8 +17,9 @@

深度纹理([name])

示例

- - [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 1ce4343d533e4f..2d7a06f4378ef6 100644 --- a/docs/examples/en/geometries/DecalGeometry.html +++ b/docs/examples/en/geometries/DecalGeometry.html @@ -32,7 +32,7 @@

[name]

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 30ba06af8f76b6..9a498300a68268 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 79391c1c6463df..a7fb7ebdd4c4b0 100644 --- a/docs/examples/en/objects/Lensflare.html +++ b/docs/examples/en/objects/Lensflare.html @@ -19,9 +19,10 @@

[name]

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 @@

Example

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 1ce4343d533e4f..2d7a06f4378ef6 100644 --- a/docs/examples/zh/geometries/DecalGeometry.html +++ b/docs/examples/zh/geometries/DecalGeometry.html @@ -32,7 +32,7 @@

[name]

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 30ba06af8f76b6..9a498300a68268 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 1d57b83707eb2e..cf9b46cf4d1dc3 100644 --- a/docs/examples/zh/objects/Lensflare.html +++ b/docs/examples/zh/objects/Lensflare.html @@ -19,9 +19,10 @@

镜头光晕([name])

示例

- [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( 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 77b98802492c28..223ae0f246bce7 100644 --- a/docs/manual/en/introduction/Creating-text.html +++ b/docs/manual/en/introduction/Creating-text.html @@ -76,14 +76,17 @@

4. Procedural Text Geometry

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 825f91cd5800c1..d21c93de6b913e 100644 --- a/docs/manual/zh/introduction/Creating-text.html +++ b/docs/manual/zh/introduction/Creating-text.html @@ -70,14 +70,15 @@

4. three.js自带的文字几何体

示例

- [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格式。 -

+