-
+
-
+ ++
+ + new PBRMaterial(params) +
+ + + + +
+ -
+
+
+ ++ + + + + + + + + +
PBR材质
++ +
+ + + + + + + +Name + + +Type + + + +Description ++ + + + +params
+ + +Object + + + + + + + ++ + + optional + + + + + + @@ -10072,7 +10234,7 @@初始化参数,所有params都会复制到实例上
+ + ++ +
+ + + + + + + +Name + + +Type + + +Default + + +Description ++ + + + + + + + +lightType
+ + +string + + + + + + ++ + PBR + + + + ++ + + optional + + + + + + +光照类型,只能为 PBR 或 NONE
+ + + + + + + + +baseColor
+ + +Color + + + + + + ++ + new Color(1, 1, 1) + + + + ++ + + optional + + + + + + +基础颜色
+ + + + + + + + +baseColorMap
+ + +Texture + + + + + + ++ + + + ++ + + optional + + + + + + +基础颜色贴图(sRGB空间)
+ + + + + + + + +metallic
+ + +number + + + + + + ++ + 1 + + + + ++ + + optional + + + + + + +金属度
+ + + + + + + + +metallicMap
+ + +Texture + + + + + + ++ + + + ++ + + optional + + + + + + +金属度贴图
+ + + + + + + + +roughness
+ + +number + + + + + + ++ + 1 + + + + ++ + + optional + + + + + + +粗糙度
+ + + + + + + + +roughnessMap
+ + +Texture + + + + + + ++ + + + ++ + + optional + + + + + + +粗糙度贴图
+ + + + + + + + +occlusionMap
+ + +Texture + + + + + + ++ + + + ++ + + optional + + + + + + +环境光遮蔽贴图
+ + + + + + + + +occlusionStrength
+ + +number + + + + + + ++ + 1 + + + + ++ + + optional + + + + + + +环境光遮蔽强度
+ + + + + + + + +emission
+ + +Texture +| + +Color + + + + + + ++ + + + ++ + + optional + + + + + + +放射光贴图(sRGB 空间),或颜色
+ + + + + + + + +diffuseEnvMap
+ + +Texture + + + + ++ + + + ++ + + optional + + + + + + +漫反射辐照(Diffuse IBL)贴图
+ + + + + + + + +diffuseEnvSphereHarmonics3
+ + +SphericalHarmonics3 - + + +- - -- PBRMaterial -
- -- - - - - --
-
-
- -
+ +
- new PBRMaterial(params) - - + - - - -- - - -
-- +PBR材质
-+ + + optional + + + + + + +漫反射 SphericalHarmonics3
+ + + + + + + + +diffuseEnvIntensity
+ + +number - - - - - + + + + + ++ + 1 + + + + ++ + + optional + + + + + + +漫反射强度
+ + @@ -8010,7 +8651,7 @@ + +specularEnvMap
+ + +Texture - - -
+- - - + + + + + +Name - - -Type - - - -Description -+ + + + ++ + + optional + + + + + + + -环境反射(Specular IBL)贴图
- + + + + +params
brdfLUT
-object +Texture + + + + + + ++ + + + ++ + + optional + + + + + + +BRDF贴图,跟环境反射贴图一起使用
+ + + + + + + + +specularEnvIntensity
+ + +number + + + + + + ++ + 1 + + + + ++ + + optional + + + + + + +环境反射(Specular IBL)贴图强度
+ + + + + + + + +[value:string]
+ + +any ++ + +@@ -7804,7 +8439,13 @@ +-
初始化参数,所有params都会复制到实例上
其它属性
+- diff --git a/docs/PointLight.html b/docs/PointLight.html index 45682694..1658495f 100644 --- a/docs/PointLight.html +++ b/docs/PointLight.html @@ -7703,6 +7703,28 @@光照类型,只能为 PBR
+光照类型,只能为 PBR 或 NONE
@@ -8640,7 +9281,7 @@- +环境反射(Specular IBL)贴图
+环境反射(Specular IBL)贴图强度
@@ -8750,7 +9391,7 @@- Color(0, 0, 0) + null diff --git a/docs/PerspectiveCamera.html b/docs/PerspectiveCamera.html index b0d9a530..dfb1c2fb 100644 --- a/docs/PerspectiveCamera.html +++ b/docs/PerspectiveCamera.html @@ -7703,6 +7703,28 @@-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
@@ -7787,13 +7809,175 @@
-object +Object + + + + + + + ++ + + optional + + + + + + @@ -9615,7 +9839,7 @@创建对象的属性参数。可包含此类的所有属性。
+ + ++ +
++ + + + + + + +Name + + +Type + + +Default + + +Description ++ + + + + + + + +fov
+ + +number + + + + + + ++ + 50 + + + + ++ + + optional + + + + + + +相机视野大小,角度制
+ + + + + + + + +near
+ + +number + + + + + + ++ + 0.1 + + + + ++ + + optional + + + + + + +相机视锥体近平面z
+ + + + + + + + +far
+ + +number + + + + + + ++ + null + + + + ++ + + optional + + + + + + +相机视锥体远平面z,null 时为无限远
+ + + + + + + + +aspect
+ + +number ++ + 1 + + +@@ -7804,7 +7988,47 @@ +-
创建对象的属性参数。可包含此类的所有属性。
宽高比
++ + + + + + + + +[value:string]
+ + +any + + + + + + ++ + + + ++ + + optional + + + + + + +其它属性
diff --git a/docs/Plane.html b/docs/Plane.html index 320c8a70..f1d64385 100644 --- a/docs/Plane.html +++ b/docs/Plane.html @@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/PlaneGeometry.html b/docs/PlaneGeometry.html
index f9ecedff..538cc6bd 100644
--- a/docs/PlaneGeometry.html
+++ b/docs/PlaneGeometry.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
@@ -7804,7 +7826,209 @@
-
创建对象的属性参数。可包含此类的所有属性。
创建对象的属性参数。可包含此类的所有属性。
+ + ++ +
++ + + + + + + +Name + + +Type + + +Default + + +Description ++ + + + + + + + +width
+ + +number + + + + + + ++ + 1 + + + + ++ + + optional + + + + + + +宽度
+ + + + + + + + +height
+ + +number + + + + + + ++ + 1 + + + + ++ + + optional + + + + + + +高度
+ + + + + + + + +widthSegments
+ + +number + + + + + + ++ + 1 + + + + ++ + + optional + + + + + + +水平分割面的数量
+ + + + + + + + +heightSegments
+ + +number + + + + + + ++ + 1 + + + + ++ + + optional + + + + + + +垂直分割面的数量
+ + + + + + + + +[value:string]
+ + +any + + + + + + ++ + + + ++ + + optional + + + + + + +其它属性
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
@@ -7804,7 +7826,173 @@
-
创建对象的属性参数。可包含此类的所有属性。
+创建对象的属性参数。可包含此类的所有属性。
+ + ++ +
+ diff --git a/docs/Program.html b/docs/Program.html index f5f39f62..e78ff523 100644 --- a/docs/Program.html +++ b/docs/Program.html @@ -7703,6 +7703,28 @@+ + + + + + + +Name + + +Type + + +Default + + +Description ++ + + + + + + + +color
+ + +Color + + + + + + ++ + new Color(1, 1, 1) + + + + ++ + + optional + + + + + + +光颜色
+ + + + + + + + +amount
+ + +number + + + + + + ++ + 1 + + + + ++ + + optional + + + + + + +光强度
+ + + + + + + + +range
+ + +number + + + + + + ++ + 0 + + + + ++ + + optional + + + + + + +光照范围, 0 时代表光照范围无限大。
+ + + + + + + + +[value:string]
+ + +any + + + + + + ++ + + + ++ + + optional + + + + + + +其它属性
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/Quaternion.html b/docs/Quaternion.html
index e68ddeed..29264cf2 100644
--- a/docs/Quaternion.html
+++ b/docs/Quaternion.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/Ray.html b/docs/Ray.html
index 22d679a8..489284c6 100644
--- a/docs/Ray.html
+++ b/docs/Ray.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/RenderInfo.html b/docs/RenderInfo.html
index f011c7f2..86a16694 100644
--- a/docs/RenderInfo.html
+++ b/docs/RenderInfo.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/RenderList.html b/docs/RenderList.html
index 6809b416..1dd15702 100644
--- a/docs/RenderList.html
+++ b/docs/RenderList.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/Shader.html b/docs/Shader.html
index c8dc5721..2cb02f15 100644
--- a/docs/Shader.html
+++ b/docs/Shader.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/ShaderMaterial.html b/docs/ShaderMaterial.html
index 74f84b88..26b5d750 100644
--- a/docs/ShaderMaterial.html
+++ b/docs/ShaderMaterial.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/ShaderMaterialLoader.html b/docs/ShaderMaterialLoader.html
index 5c82c9a5..2f167575 100644
--- a/docs/ShaderMaterialLoader.html
+++ b/docs/ShaderMaterialLoader.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/Skeleton.html b/docs/Skeleton.html
index 52bc385d..28562ef2 100644
--- a/docs/Skeleton.html
+++ b/docs/Skeleton.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/SkinedMesh.html b/docs/SkinedMesh.html
index e2f7db77..8379aafd 100644
--- a/docs/SkinedMesh.html
+++ b/docs/SkinedMesh.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
@@ -10115,7 +10137,7 @@
@@ -10261,7 +10283,7 @@
@@ -10457,7 +10479,7 @@
diff --git a/docs/SphereGeometry.html b/docs/SphereGeometry.html index d35e914c..b917825d 100644 --- a/docs/SphereGeometry.html +++ b/docs/SphereGeometry.html @@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
@@ -7787,7 +7809,7 @@
-object +Object @@ -7804,7 +7826,173 @@ +-
创建对象的属性参数。可包含此类的所有属性。
创建对象的属性参数。可包含此类的所有属性。
+ + ++ +
+ diff --git a/docs/SphericalHarmonics3.html b/docs/SphericalHarmonics3.html index 6afc0aa9..1e97c191 100644 --- a/docs/SphericalHarmonics3.html +++ b/docs/SphericalHarmonics3.html @@ -7703,6 +7703,28 @@+ + + + + + + +Name + + +Type + + +Default + + +Description ++ + + + + + + + +radius
+ + +number + + + + + + ++ + 1 + + + + ++ + + optional + + + + + + +半径
+ + + + + + + + +heightSegments
+ + +number + + + + + + ++ + 16 + + + + ++ + + optional + + + + + + +垂直分割面的数量
+ + + + + + + + +widthSegments
+ + +number + + + + + + ++ + 32 + + + + ++ + + optional + + + + + + +水平分割面的数量
+ + + + + + + + +[value:string]
+ + +any + + + + + + ++ + + + ++ + + optional + + + + + + +其它属性
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/SpotLight.html b/docs/SpotLight.html
index 47373fb3..82a89a61 100644
--- a/docs/SpotLight.html
+++ b/docs/SpotLight.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
@@ -7804,7 +7826,281 @@
-
创建对象的属性参数。可包含此类的所有属性。
+创建对象的属性参数。可包含此类的所有属性。
+ + ++ +
+ diff --git a/docs/Stage.html b/docs/Stage.html index c9187b18..4b5d6f4f 100644 --- a/docs/Stage.html +++ b/docs/Stage.html @@ -7703,6 +7703,28 @@+ + + + + + + +Name + + +Type + + +Default + + +Description ++ + + + + + + + +color
+ + +Color + + + + + + ++ + new Color(1, 1, 1) + + + + ++ + + optional + + + + + + +光颜色
+ + + + + + + + +amount
+ + +number + + + + + + ++ + 1 + + + + ++ + + optional + + + + + + +光强度
+ + + + + + + + +range
+ + +number + + + + + + ++ + 0 + + + + ++ + + optional + + + + + + +光照范围, 0 时代表光照范围无限大。
+ + + + + + + + +direction
+ + +Vector3 + + + + + + ++ + new Vector3(0, 0, 1) + + + + ++ + + optional + + + + + + +光方向
+ + + + + + + + +cutoff
+ + +number + + + + + + ++ + 12.5 + + + + ++ + + optional + + + + + + +切光角(角度),落在这个角度之内的光亮度为1
+ + + + + + + + +outerCutoff
+ + +number + + + + + + ++ + 17.5 + + + + ++ + + optional + + + + + + +外切光角(角度),在切光角合外切光角之间的光亮度渐变到0
+ + + + + + + + +[value:string]
+ + +any + + + + + + ++ + + + ++ + + optional + + + + + + +其它属性
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
@@ -7895,6 +7917,112 @@
+
+ + + + + + + + +camera
+ + +Camera + + + + + + ++ + + + ++ + + optional + + + + + + +stage的摄像机。
+ + + + + + + + +width
+ + +number + + + + + + ++ + innerWidth + + + + ++ + + optional + + + + + + +stage的宽,默认网页宽度
+ + + + + + + +height
+ + +number + + + + + + ++ + innerHeight + + + + ++ + + optional + + + + + + +stage的高,默认网页高度
@@ -7903,7 +8031,7 @@pixelRatio
-Number +number @@ -7975,7 +8103,7 @@ -Boolean +boolean @@ -8047,7 +8175,7 @@ -Boolean +boolean @@ -8083,7 +8211,7 @@ -Boolean +boolean @@ -8119,7 +8247,7 @@ -Boolean +boolean @@ -8155,7 +8283,7 @@ -Boolean +boolean @@ -8191,7 +8319,7 @@ -Boolean +boolean @@ -8227,7 +8355,7 @@ -Boolean +boolean @@ -8263,7 +8391,7 @@ -Boolean +boolean @@ -8299,7 +8427,7 @@ -Boolean +boolean @@ -8335,7 +8463,7 @@ -Boolean +boolean @@ -8362,6 +8490,40 @@ + + + + + + +[value:string]
+ + +any + + + + + + ++ + + + ++ + + optional + + + + + + +其它属性
@@ -10331,7 +10493,7 @@
@@ -10498,7 +10660,7 @@
@@ -10711,7 +10873,7 @@
@@ -10855,7 +11017,7 @@
@@ -11025,7 +11187,7 @@
@@ -11124,7 +11286,7 @@
@@ -11350,7 +11512,7 @@
@@ -16309,7 +16471,7 @@
diff --git a/docs/Texture.html b/docs/Texture.html index 7f77275d..0133cebb 100644 --- a/docs/Texture.html +++ b/docs/Texture.html @@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/TextureLoader.html b/docs/TextureLoader.html
index 50c8b7b7..1c4270ef 100644
--- a/docs/TextureLoader.html
+++ b/docs/TextureLoader.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/Ticker.html b/docs/Ticker.html
index 9644a0c4..dac7b5fa 100644
--- a/docs/Ticker.html
+++ b/docs/Ticker.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
@@ -7822,6 +7844,1099 @@
-
+ ++
+ + addTick(tickObject) +
+ + ++ utils/Ticker.js, line 8 ++ +
+ -
+
+
+ ++ + + + + + + + + +
添加定时器对象。定时器对象必须实现 tick 方法。
++ +
+ + + ++ + + + + + + +Name + + +Type + + + +Description ++ + + + + + + + +tickObject
+ + +Object + + + + + + + ++ + +-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+ ++
+ + removeTick(tickObject) +
+ + ++ utils/Ticker.js, line 15 ++ +
+ -
+
+
+ ++ + + + + + + + + +
删除定时器对象。
++ +
+ + + ++ + + + + + + +Name + + +Type + + + +Description ++ + + + + + + + +tickObject
+ + +Object + + + + + + + ++ + +-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+ ++
+ + start() +
+ + ++ utils/Ticker.js, line 22 ++ +
+ -
+
+
+ ++ + + + + + + + + +
开始计时器
+-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+ ++
+ + stop() +
+ + ++ utils/Ticker.js, line 28 ++ +
+ -
+
+
+ ++ + + + + + + + + +
停止计时器
+-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+ ++
+ + pause() +
+ + ++ utils/Ticker.js, line 34 ++ +
+ -
+
+
+ ++ + + + + + + + + +
暂停计时器
+-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+ ++
+ + resume() +
+ + ++ utils/Ticker.js, line 40 ++ +
+ -
+
+
+ ++ + + + + + + + + +
恢复计时器
+-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+ ++
+ + timeout(callback, duration){Object} +
+ + ++ utils/Ticker.js, line 46 ++ +
+ -
+
+
+ ++ + + + + + + + + +
延迟指定的时间后调用回调, 类似setTimeout
++ +
+ + + ++ + + + + + + +Name + + +Type + + + +Description ++ + + + + + + + +callback
+ + +function + + + + + + + ++ + ++ + + + + + + + +duration
+ + +number + + + + + + + ++ + +时间周期,单位毫秒
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Returns:
+ + + ++ +
+ + + + ++ + + + + +Type +Description ++ + + + ++ + Object + + + +tickObject 定时器对象 +
+ -
+ ++
+ + interval(callback, duration){Object} +
+ + ++ utils/Ticker.js, line 55 ++ +
+ -
+
+
+ ++ + + + + + + + + +
指定的时间周期来调用函数, 类似setInterval
++ +
+ + + ++ + + + + + + +Name + + +Type + + + +Description ++ + + + + + + + +callback
+ + +function + + + + + + + ++ + ++ + + + + + + + +duration
+ + +number + + + + + + + ++ + +时间周期,单位毫秒
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Returns:
+ + + ++ +
+ + + + ++ + + + + +Type +Description ++ + + + ++ + Object + + + +tickObject 定时器对象 +
+ -
+ ++
+ + nextTick(callback){Object} +
+ + ++ utils/Ticker.js, line 64 ++ +
+ -
+
+
+ ++ + + + + + + + + +
下次tick时回调
++ +
+ + + ++ + + + + + + +Name + + +Type + + + +Description ++ + + + + + + + +callback
+ + +function + + + + + + + ++ + +-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Returns:
+ + + ++ +
+ + + + ++ + + + + +Type +Description ++ + + + ++ + Object + + + +tickObject 定时器对象 +
+ -
+ ++
+ + getMeasuredFPS(){number} +
+ + ++ utils/Ticker.js, line 72 ++ +
+ -
+
+
+ ++ + + + + + + + + +
获得测定的运行时帧率。
+-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Returns:
+ + + ++ +
+ + + + ++ + + + + +Type +Description ++ + + + ++ + number + + + ++
+
+
Methods + Show Inherited +
+ +-
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/Vector2.html b/docs/Vector2.html
index 8a1833e9..73babda4 100644
--- a/docs/Vector2.html
+++ b/docs/Vector2.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/Vector3.html b/docs/Vector3.html
index 4f7e8e6b..6d83a079 100644
--- a/docs/Vector3.html
+++ b/docs/Vector3.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/Vector3Notifier.html b/docs/Vector3Notifier.html
index d1bb1fed..de1daa88 100644
--- a/docs/Vector3Notifier.html
+++ b/docs/Vector3Notifier.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/Vector4.html b/docs/Vector4.html
index dc01122c..f452f5c4 100644
--- a/docs/Vector4.html
+++ b/docs/Vector4.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/VertexArrayObject.html b/docs/VertexArrayObject.html
index 905e3fa0..8aabf932 100644
--- a/docs/VertexArrayObject.html
+++ b/docs/VertexArrayObject.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/WebGLRenderer.html b/docs/WebGLRenderer.html
index 1bcad47b..baac5f02 100644
--- a/docs/WebGLRenderer.html
+++ b/docs/WebGLRenderer.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/WebGLResourceManager.html b/docs/WebGLResourceManager.html
index f00c0623..27c2e651 100644
--- a/docs/WebGLResourceManager.html
+++ b/docs/WebGLResourceManager.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/WebGLState.html b/docs/WebGLState.html
index 3646d8a0..c0ec97d2 100644
--- a/docs/WebGLState.html
+++ b/docs/WebGLState.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/WebGLSupport.html b/docs/WebGLSupport.html
index ea3d961e..00c6dfaf 100644
--- a/docs/WebGLSupport.html
+++ b/docs/WebGLSupport.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/animation_Animation.js.html b/docs/animation_Animation.js.html
index 02ce2b9d..ab87aaa8 100644
--- a/docs/animation_Animation.js.html
+++ b/docs/animation_Animation.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/animation_AnimationStates.js.html b/docs/animation_AnimationStates.js.html
index 2ac35f3f..fe21125d 100644
--- a/docs/animation_AnimationStates.js.html
+++ b/docs/animation_AnimationStates.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/camera_Camera.js.html b/docs/camera_Camera.js.html
index 2a186dde..2f372c3e 100644
--- a/docs/camera_Camera.js.html
+++ b/docs/camera_Camera.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/camera_OrthographicCamera.js.html b/docs/camera_OrthographicCamera.js.html
index 345ff866..ba6030ae 100644
--- a/docs/camera_OrthographicCamera.js.html
+++ b/docs/camera_OrthographicCamera.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
@@ -7842,6 +7864,13 @@
Source: /** * @constructs * @param {object} [params] 创建对象的属性参数。可包含此类的所有属性。 + * @param {number} [params.left=1] + * @param {number} [params.right=1] + * @param {number} [params.top=1] + * @param {number} [params.bottom=1] + * @param {number} [params.near=0.1] + * @param {number} [params.far=1] + * @param {any} [params.[value:string]] 其它属性 */ constructor(params) { OrthographicCamera.superclass.constructor.call(this, params); diff --git a/docs/camera_PerspectiveCamera.js.html b/docs/camera_PerspectiveCamera.js.html index b2271fc5..e97a5354 100644 --- a/docs/camera_PerspectiveCamera.js.html +++ b/docs/camera_PerspectiveCamera.js.html @@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
@@ -7814,7 +7836,12 @@
Source: /** * @constructs - * @param {object} [params] 创建对象的属性参数。可包含此类的所有属性。 + * @param {Object} [params] 创建对象的属性参数。可包含此类的所有属性。 + * @param {number} [params.fov=50] 相机视野大小,角度制 + * @param {number} [params.near=0.1] 相机视锥体近平面z + * @param {number} [params.far=null] 相机视锥体远平面z,null 时为无限远 + * @param {number} [params.aspect=1] 宽高比 + * @param {any} [params.[value:string]] 其它属性 */ constructor(params) { PerspectiveCamera.superclass.constructor.call(this, params); diff --git a/docs/capabilities.html b/docs/capabilities.html index 068d0c59..9d2dce7a 100644 --- a/docs/capabilities.html +++ b/docs/capabilities.html @@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/constants_index.js.html b/docs/constants_index.js.html
index c601cc2d..8c5956c9 100644
--- a/docs/constants_index.js.html
+++ b/docs/constants_index.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/core_Class.js.html b/docs/core_Class.js.html
index 8a4a09ab..13bc47ed 100644
--- a/docs/core_Class.js.html
+++ b/docs/core_Class.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
@@ -7732,16 +7754,12 @@
Source: core/Class.js< /** * @memberOf Class * @method create - * @param {ClassProperty | Object} props - */ - -/** - * 类属性 - * @interface ClassProperty - * @property {Object} [Statics] 静态属性 - * @property {Object} [Extends] 继承 - * @property {Object} [Mixes] mixes - * @property {Function} [constructor] 构造函数 + * @param {Object} params 类属性 + * @param {Object} [params.Statics] 静态属性 + * @param {Object} [params.Extends] 继承 + * @param {Object} [params.Mixes] mixes + * @param {Function} [params.constructor] 构造函数 + * @param {any} [params.[value:string]] 其它属性 */ diff --git a/docs/core_EventMixin.js.html b/docs/core_EventMixin.js.html index cff43b48..f817effd 100644 --- a/docs/core_EventMixin.js.html +++ b/docs/core_EventMixin.js.html @@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/core_Fog.js.html b/docs/core_Fog.js.html
index ae837c2a..a3765d8f 100644
--- a/docs/core_Fog.js.html
+++ b/docs/core_Fog.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/core_Mesh.js.html b/docs/core_Mesh.js.html
index 6de108d4..ef403f3a 100644
--- a/docs/core_Mesh.js.html
+++ b/docs/core_Mesh.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/core_Skeleton.js.html b/docs/core_Skeleton.js.html
index da472238..656e1e5a 100644
--- a/docs/core_Skeleton.js.html
+++ b/docs/core_Skeleton.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/core_SkinedMesh.js.html b/docs/core_SkinedMesh.js.html
index 4842ee58..5f1a7182 100644
--- a/docs/core_SkinedMesh.js.html
+++ b/docs/core_SkinedMesh.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/core_Stage.js.html b/docs/core_Stage.js.html
index c55c16e6..57b3846f 100644
--- a/docs/core_Stage.js.html
+++ b/docs/core_Stage.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
@@ -7793,19 +7815,23 @@
Source: core/Stage.js< * @param {Object} [params] 创建对象的属性参数。可包含此类的所有属性,所有属性会透传给 Renderer。 * @param {HTMLElement} [params.container] stage的容器, 如果有,会把canvas加进container里。 * @param {HTMLCanvasElement} [params.canvas] stage的canvas,不传会自动创建。 - * @param {Number} [params.pixelRatio=根据设备自动判断] 像素密度。 + * @param {Camera} [params.camera] stage的摄像机。 + * @param {number} [params.width=innerWidth] stage的宽,默认网页宽度 + * @param {number} [params.height=innerHeight] stage的高,默认网页高度 + * @param {number} [params.pixelRatio=根据设备自动判断] 像素密度。 * @param {Color} [params.clearColor=new Color(1, 1, 1, 1)] 背景色。 - * @param {Boolean} [params.useFramebuffer=false] 是否使用Framebuffer,有后处理需求时需要。 + * @param {boolean} [params.useFramebuffer=false] 是否使用Framebuffer,有后处理需求时需要。 * @param {Object} [params.framebufferOption={}] framebufferOption Framebuffer的配置,useFramebuffer为true时生效。 - * @param {Boolean} [params.useLogDepth=false] 是否使用对数深度,处理深度冲突。 - * @param {Boolean} [params.alpha=false] 是否背景透明。 - * @param {Boolean} [params.depth=true] 是否需要深度缓冲区。 - * @param {Boolean} [params.stencil=false] 是否需要模版缓冲区。 - * @param {Boolean} [params.antialias=true] 是否抗锯齿。 - * @param {Boolean} [params.premultipliedAlpha=true] 是否需要 premultipliedAlpha。 - * @param {Boolean} [params.preserveDrawingBuffer=false] 是否需要 preserveDrawingBuffer。 - * @param {Boolean} [params.failIfMajorPerformanceCaveat=false] 是否需要 failIfMajorPerformanceCaveat。 - * @param {Boolean} [params.gameMode=false] 是否开启游戏模式,UC 浏览器专用 + * @param {boolean} [params.useLogDepth=false] 是否使用对数深度,处理深度冲突。 + * @param {boolean} [params.alpha=false] 是否背景透明。 + * @param {boolean} [params.depth=true] 是否需要深度缓冲区。 + * @param {boolean} [params.stencil=false] 是否需要模版缓冲区。 + * @param {boolean} [params.antialias=true] 是否抗锯齿。 + * @param {boolean} [params.premultipliedAlpha=true] 是否需要 premultipliedAlpha。 + * @param {boolean} [params.preserveDrawingBuffer=false] 是否需要 preserveDrawingBuffer。 + * @param {boolean} [params.failIfMajorPerformanceCaveat=false] 是否需要 failIfMajorPerformanceCaveat。 + * @param {boolean} [params.gameMode=false] 是否开启游戏模式,UC 浏览器专用 + * @param {any} [params.[value:string]] 其它属性 */ constructor(params) { if (!params.width) { diff --git a/docs/core_Tween.js.html b/docs/core_Tween.js.html index f305eda5..3bff0f90 100644 --- a/docs/core_Tween.js.html +++ b/docs/core_Tween.js.html @@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/extensions.html b/docs/extensions.html
index 15259b83..aeaa41b1 100644
--- a/docs/extensions.html
+++ b/docs/extensions.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/geometry_BoxGeometry.js.html b/docs/geometry_BoxGeometry.js.html
index cc1433f1..d51f9397 100644
--- a/docs/geometry_BoxGeometry.js.html
+++ b/docs/geometry_BoxGeometry.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
@@ -7784,7 +7806,14 @@
Source: geom depthSegments: 1, /** * @constructs - * @param {object} [params] 创建对象的属性参数。可包含此类的所有属性。 + * @param {Object} [params] 创建对象的属性参数。可包含此类的所有属性。 + * @param {number} [params.width=1] box的宽度 + * @param {number} [params.height=1] box的高度 + * @param {number} [params.depth=1] box的深度 + * @param {number} [params.widthSegments=1] 水平分割面的数量 + * @param {number} [params.heightSegments=1] 垂直分割面的数量 + * @param {number} [params.depthSegments=1] 深度分割面的数量 + * @param {any} [params.[value:string]] 其它属性 */ constructor(params) { BoxGeometry.superclass.constructor.call(this, params); diff --git a/docs/geometry_Geometry.js.html b/docs/geometry_Geometry.js.html index ac0ff6ee..706c74be 100644 --- a/docs/geometry_Geometry.js.html +++ b/docs/geometry_Geometry.js.html @@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/geometry_GeometryData.js.html b/docs/geometry_GeometryData.js.html
index e5b54a12..49de90a7 100644
--- a/docs/geometry_GeometryData.js.html
+++ b/docs/geometry_GeometryData.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/geometry_MorphGeometry.js.html b/docs/geometry_MorphGeometry.js.html
index 88637ed2..e0bab231 100644
--- a/docs/geometry_MorphGeometry.js.html
+++ b/docs/geometry_MorphGeometry.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/geometry_PlaneGeometry.js.html b/docs/geometry_PlaneGeometry.js.html
index 2bb486fa..ea3808b9 100644
--- a/docs/geometry_PlaneGeometry.js.html
+++ b/docs/geometry_PlaneGeometry.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
@@ -7775,6 +7797,11 @@
Source: ge /** * @constructs * @param {object} [params] 创建对象的属性参数。可包含此类的所有属性。 + * @param {number} [params.width=1] 宽度 + * @param {number} [params.height=1] 高度 + * @param {number} [params.widthSegments=1] 水平分割面的数量 + * @param {number} [params.heightSegments=1] 垂直分割面的数量 + * @param {any} [params.[value:string]] 其它属性 */ constructor(params) { PlaneGeometry.superclass.constructor.call(this, params); diff --git a/docs/geometry_SphereGeometry.js.html b/docs/geometry_SphereGeometry.js.html index a802c76f..3553ceec 100644 --- a/docs/geometry_SphereGeometry.js.html +++ b/docs/geometry_SphereGeometry.js.html @@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
@@ -7761,7 +7783,11 @@
Source: g widthSegments: 32, /** * @constructs - * @param {object} [params] 创建对象的属性参数。可包含此类的所有属性。 + * @param {Object} [params] 创建对象的属性参数。可包含此类的所有属性。 + * @param {number} [params.radius=1] 半径 + * @param {number} [params.heightSegments=16] 垂直分割面的数量 + * @param {number} [params.widthSegments=32] 水平分割面的数量 + * @param {any} [params.[value:string]] 其它属性 */ constructor(params) { SphereGeometry.superclass.constructor.call(this, params); diff --git a/docs/glType.html b/docs/glType.html index fc40f11a..2df467c2 100644 --- a/docs/glType.html +++ b/docs/glType.html @@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/global.html b/docs/global.html
index 24e23aa9..409afe08 100644
--- a/docs/global.html
+++ b/docs/global.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/helper_AxisHelper.js.html b/docs/helper_AxisHelper.js.html
index a8e36325..12689dc3 100644
--- a/docs/helper_AxisHelper.js.html
+++ b/docs/helper_AxisHelper.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/helper_AxisNetHelper.js.html b/docs/helper_AxisNetHelper.js.html
index 65fa38e9..2839fb2b 100644
--- a/docs/helper_AxisNetHelper.js.html
+++ b/docs/helper_AxisNetHelper.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/helper_CameraHelper.js.html b/docs/helper_CameraHelper.js.html
index 7c91f0c2..fd5d7662 100644
--- a/docs/helper_CameraHelper.js.html
+++ b/docs/helper_CameraHelper.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/index.html b/docs/index.html
index a4c11b80..116feb89 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
@@ -7739,7 +7761,7 @@
- Compatible for multiple mobile and desktop browsers. @@ -7755,8 +7777,8 @@
-
-
use script tag from a cdn
-<script src='//g.alicdn.com/hilo/Hilo3d/1.15.7/Hilo3d.js'></script> +
use script tag from a cdn
+<script src='//g.alicdn.com/hilo/Hilo3d/1.15.8/Hilo3d.js'></script>
A 3D WebGL Rendering Engine
Installation • Documentation • Development • Showcase • Examples • Authors • License
- +Features
Installation
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
@@ -7744,8 +7766,10 @@
Source: light/ autoUpdateWorldMatrix: false, /** * @constructs - * @override * @param {Object} [params] 创建对象的属性参数。可包含此类的所有属性。 + * @param {Color} [params.color=new Color(1, 1, 1)] 光颜色 + * @param {number} [params.amount=1] 光强度 + * @param {any} [params.[value:string]] 其它属性 */ constructor(params) { AmbientLight.superclass.constructor.call(this, params); diff --git a/docs/light_AreaLight.js.html b/docs/light_AreaLight.js.html index ee80a373..c5475097 100644 --- a/docs/light_AreaLight.js.html +++ b/docs/light_AreaLight.js.html @@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/light_DirectionalLight.js.html b/docs/light_DirectionalLight.js.html
index edc75d9d..2ff36575 100644
--- a/docs/light_DirectionalLight.js.html
+++ b/docs/light_DirectionalLight.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
@@ -7748,6 +7770,10 @@
Source: li /** * @constructs * @param {Object} [params] 创建对象的属性参数。可包含此类的所有属性。 + * @param {Color} [params.color=new Color(1, 1, 1)] 光颜色 + * @param {number} [params.amount=1] 光强度 + * @param {Vector3} [params.direction=new Vector3(0, 0, 1)] 光方向 + * @param {any} [params.[value:string]] 其它属性 */ constructor(params) { /** diff --git a/docs/light_Light.js.html b/docs/light_Light.js.html index 444e517f..4bb66aac 100644 --- a/docs/light_Light.js.html +++ b/docs/light_Light.js.html @@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/light_LightManager.js.html b/docs/light_LightManager.js.html
index 19dc2064..99d32c4f 100644
--- a/docs/light_LightManager.js.html
+++ b/docs/light_LightManager.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/light_PointLight.js.html b/docs/light_PointLight.js.html
index 30287aae..333d1888 100644
--- a/docs/light_PointLight.js.html
+++ b/docs/light_PointLight.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
@@ -7743,6 +7765,10 @@
Source: light/Po /** * @constructs * @param {Object} [params] 创建对象的属性参数。可包含此类的所有属性。 + * @param {Color} [params.color=new Color(1, 1, 1)] 光颜色 + * @param {number} [params.amount=1] 光强度 + * @param {number} [params.range=0] 光照范围, 0 时代表光照范围无限大。 + * @param {any} [params.[value:string]] 其它属性 */ constructor(params) { PointLight.superclass.constructor.call(this, params); diff --git a/docs/light_SpotLight.js.html b/docs/light_SpotLight.js.html index 47c29551..63efea91 100644 --- a/docs/light_SpotLight.js.html +++ b/docs/light_SpotLight.js.html @@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
@@ -7782,6 +7804,13 @@
Source: light/Spo /** * @constructs * @param {Object} [params] 创建对象的属性参数。可包含此类的所有属性。 + * @param {Color} [params.color=new Color(1, 1, 1)] 光颜色 + * @param {number} [params.amount=1] 光强度 + * @param {number} [params.range=0] 光照范围, 0 时代表光照范围无限大。 + * @param {Vector3} [params.direction=new Vector3(0, 0, 1)] 光方向 + * @param {number} [params.cutoff=12.5] 切光角(角度),落在这个角度之内的光亮度为1 + * @param {number} [params.outerCutoff=17.5] 外切光角(角度),在切光角合外切光角之间的光亮度渐变到0 + * @param {any} [params.[value:string]] 其它属性 */ constructor(params) { /** diff --git a/docs/loader_BasicLoader.js.html b/docs/loader_BasicLoader.js.html index 5722b3b5..95f79b75 100644 --- a/docs/loader_BasicLoader.js.html +++ b/docs/loader_BasicLoader.js.html @@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/loader_CubeTextureLoader.js.html b/docs/loader_CubeTextureLoader.js.html
index 73b5c2df..11da69b4 100644
--- a/docs/loader_CubeTextureLoader.js.html
+++ b/docs/loader_CubeTextureLoader.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/loader_GLTFExtensions.js.html b/docs/loader_GLTFExtensions.js.html
index ccd54196..7783cb09 100644
--- a/docs/loader_GLTFExtensions.js.html
+++ b/docs/loader_GLTFExtensions.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/loader_GLTFLoader.js.html b/docs/loader_GLTFLoader.js.html
index 84a04c10..2cf8acba 100644
--- a/docs/loader_GLTFLoader.js.html
+++ b/docs/loader_GLTFLoader.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/loader_GLTFParser.js.html b/docs/loader_GLTFParser.js.html
index fea830bc..5d7fc9fa 100644
--- a/docs/loader_GLTFParser.js.html
+++ b/docs/loader_GLTFParser.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/loader_HDRLoader.js.html b/docs/loader_HDRLoader.js.html
index d542b296..836fd952 100644
--- a/docs/loader_HDRLoader.js.html
+++ b/docs/loader_HDRLoader.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/loader_KTXLoader.js.html b/docs/loader_KTXLoader.js.html
index 0206d28f..8a935167 100644
--- a/docs/loader_KTXLoader.js.html
+++ b/docs/loader_KTXLoader.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/loader_LoadCache.js.html b/docs/loader_LoadCache.js.html
index 3ce6a3ac..74b6085b 100644
--- a/docs/loader_LoadCache.js.html
+++ b/docs/loader_LoadCache.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/loader_LoadQueue.js.html b/docs/loader_LoadQueue.js.html
index ff219088..0fa6abc8 100644
--- a/docs/loader_LoadQueue.js.html
+++ b/docs/loader_LoadQueue.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/loader_Loader.js.html b/docs/loader_Loader.js.html
index 0a9cdfc6..78b35a66 100644
--- a/docs/loader_Loader.js.html
+++ b/docs/loader_Loader.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/loader_ShaderMaterialLoader.js.html b/docs/loader_ShaderMaterialLoader.js.html
index 181afd36..b0071f22 100644
--- a/docs/loader_ShaderMaterialLoader.js.html
+++ b/docs/loader_ShaderMaterialLoader.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/loader_TextureLoader.js.html b/docs/loader_TextureLoader.js.html
index 49f7cf61..277d108d 100644
--- a/docs/loader_TextureLoader.js.html
+++ b/docs/loader_TextureLoader.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/log.html b/docs/log.html
index bb8c9186..03723346 100644
--- a/docs/log.html
+++ b/docs/log.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/material_BasicMaterial.js.html b/docs/material_BasicMaterial.js.html
index c978e28d..9f2ff5b4 100644
--- a/docs/material_BasicMaterial.js.html
+++ b/docs/material_BasicMaterial.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
@@ -7813,7 +7835,19 @@
Source: ma usedUniformVectors: 11, /** * @constructs - * @param {object} [params] 初始化参数,所有params都会复制到实例上 + * @param {Object} [params] 初始化参数,所有params都会复制到实例上 + * @param {string} [params.lightType=BLINN-PHONG] 光照类型,支持: NONE, PHONG, BLINN-PHONG, LAMBERT + * @param {Texture|Color} [params.diffuse=new Color(.5, .5, .5)] 漫反射贴图,或颜色 + * @param {Texture|Color} [params.ambient] 环境光贴图,或颜色 + * @param {Texture|Color} [params.specular=new Color(1, 1, 1)] 镜面贴图,或颜色 + * @param {Texture|Color} [params.emission=new Color(0, 0, 0)] 放射光贴图,或颜色 + * @param {Texture} [params.specularEnvMap] 环境贴图 + * @param {Matrix4} [params.specularEnvMatrix] 环境贴图变化矩阵,如旋转等 + * @param {number} [params.reflectivity=0] 反射率 + * @param {number} [params.refractRatio=0] 折射比率 + * @param {number} [params.refractivity=0] 折射率 + * @param {number} [params.shininess=32] 高光发光值 + * @param {any} [params.[value:string]] 其它属性 */ constructor(params) { this.diffuse = new Color(.5, .5, .5); diff --git a/docs/material_GeometryMaterial.js.html b/docs/material_GeometryMaterial.js.html index e51f8901..1d19dca4 100644 --- a/docs/material_GeometryMaterial.js.html +++ b/docs/material_GeometryMaterial.js.html @@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/material_Material.js.html b/docs/material_Material.js.html
index e76c4e84..86c87177 100644
--- a/docs/material_Material.js.html
+++ b/docs/material_Material.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/material_PBRMaterial.js.html b/docs/material_PBRMaterial.js.html
index e99ade04..b7f672a9 100644
--- a/docs/material_PBRMaterial.js.html
+++ b/docs/material_PBRMaterial.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
@@ -7747,7 +7769,7 @@
Source: mate className: 'PBRMaterial', /** - * 光照类型,只能为 PBR + * 光照类型,只能为 PBR 或 NONE * @default PBR * @readOnly * @type {string} @@ -7864,7 +7886,7 @@
Source: mate brdfLUT: null, /** - * 环境反射(Specular IBL)贴图 + * 环境反射(Specular IBL)贴图强度 * @default 1 * @type {Number} */ @@ -7886,7 +7908,7 @@
Source: mate /** * 放射光贴图(sRGB 空间),或颜色 - * @default Color(0, 0, 0) + * @default null * @type {Texture|Color} */ emission: null, @@ -7924,7 +7946,24 @@
Source: mate /** * @constructs - * @param {object} [params] 初始化参数,所有params都会复制到实例上 + * @param {Object} [params] 初始化参数,所有params都会复制到实例上 + * @param {string} [params.lightType=PBR] 光照类型,只能为 PBR 或 NONE + * @param {Color} [params.baseColor=new Color(1, 1, 1)] 基础颜色 + * @param {Texture} [params.baseColorMap] 基础颜色贴图(sRGB空间) + * @param {number} [params.metallic=1] 金属度 + * @param {Texture} [params.metallicMap] 金属度贴图 + * @param {number} [params.roughness=1] 粗糙度 + * @param {Texture} [params.roughnessMap] 粗糙度贴图 + * @param {Texture} [params.occlusionMap] 环境光遮蔽贴图 + * @param {number} [params.occlusionStrength=1] 环境光遮蔽强度 + * @param {Texture|Color} [params.emission] 放射光贴图(sRGB 空间),或颜色 + * @param {Texture} [params.diffuseEnvMap] 漫反射辐照(Diffuse IBL)贴图 + * @param {SphericalHarmonics3} [params.diffuseEnvSphereHarmonics3] 漫反射 SphericalHarmonics3 + * @param {number} [params.diffuseEnvIntensity=1] 漫反射强度 + * @param {Texture} [params.specularEnvMap] 环境反射(Specular IBL)贴图 + * @param {Texture} [params.brdfLUT] BRDF贴图,跟环境反射贴图一起使用 + * @param {number} [params.specularEnvIntensity=1] 环境反射(Specular IBL)贴图强度 + * @param {any} [params.[value:string]] 其它属性 */ constructor(params) { this.baseColor = new Color(1, 1, 1); diff --git a/docs/material_ShaderMaterial.js.html b/docs/material_ShaderMaterial.js.html index 40cae0e9..695ae039 100644 --- a/docs/material_ShaderMaterial.js.html +++ b/docs/material_ShaderMaterial.js.html @@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/material_semantic.js.html b/docs/material_semantic.js.html
index d54fd551..8405db54 100644
--- a/docs/material_semantic.js.html
+++ b/docs/material_semantic.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/math.html b/docs/math.html
index ad31646e..2865109e 100644
--- a/docs/math.html
+++ b/docs/math.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/math_Color.js.html b/docs/math_Color.js.html
index 6fdc7987..1eaa0fd2 100644
--- a/docs/math_Color.js.html
+++ b/docs/math_Color.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/math_Euler.js.html b/docs/math_Euler.js.html
index 096b1171..8f7a374b 100644
--- a/docs/math_Euler.js.html
+++ b/docs/math_Euler.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/math_EulerNotifier.js.html b/docs/math_EulerNotifier.js.html
index f93c29e5..875fff3a 100644
--- a/docs/math_EulerNotifier.js.html
+++ b/docs/math_EulerNotifier.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/math_Frustum.js.html b/docs/math_Frustum.js.html
index 71d2336f..fd2c2833 100644
--- a/docs/math_Frustum.js.html
+++ b/docs/math_Frustum.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/math_Matrix3.js.html b/docs/math_Matrix3.js.html
index 235fcb70..55b746d5 100644
--- a/docs/math_Matrix3.js.html
+++ b/docs/math_Matrix3.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/math_Matrix4.js.html b/docs/math_Matrix4.js.html
index de0fe4ef..a68c4bc1 100644
--- a/docs/math_Matrix4.js.html
+++ b/docs/math_Matrix4.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/math_Matrix4Notifier.js.html b/docs/math_Matrix4Notifier.js.html
index 611931bb..24be9276 100644
--- a/docs/math_Matrix4Notifier.js.html
+++ b/docs/math_Matrix4Notifier.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/math_Plane.js.html b/docs/math_Plane.js.html
index 42a99fb8..ed11dad3 100644
--- a/docs/math_Plane.js.html
+++ b/docs/math_Plane.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/math_Quaternion.js.html b/docs/math_Quaternion.js.html
index ef5eb8c9..ee45dd9e 100644
--- a/docs/math_Quaternion.js.html
+++ b/docs/math_Quaternion.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/math_Ray.js.html b/docs/math_Ray.js.html
index 6aa66da7..10adef5d 100644
--- a/docs/math_Ray.js.html
+++ b/docs/math_Ray.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/math_Sphere.js.html b/docs/math_Sphere.js.html
index 4b3f457b..8108fc41 100644
--- a/docs/math_Sphere.js.html
+++ b/docs/math_Sphere.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/math_SphericalHarmonics3.js.html b/docs/math_SphericalHarmonics3.js.html
index f6d7f94c..d211f813 100644
--- a/docs/math_SphericalHarmonics3.js.html
+++ b/docs/math_SphericalHarmonics3.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/math_Vector2.js.html b/docs/math_Vector2.js.html
index 22560885..f0bb02d1 100644
--- a/docs/math_Vector2.js.html
+++ b/docs/math_Vector2.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/math_Vector3.js.html b/docs/math_Vector3.js.html
index 8ad9fd0c..55ae5acd 100644
--- a/docs/math_Vector3.js.html
+++ b/docs/math_Vector3.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/math_Vector3Notifier.js.html b/docs/math_Vector3Notifier.js.html
index a00da33d..8d66a9ee 100644
--- a/docs/math_Vector3Notifier.js.html
+++ b/docs/math_Vector3Notifier.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/math_Vector4.js.html b/docs/math_Vector4.js.html
index 42bb1050..fdbb21da 100644
--- a/docs/math_Vector4.js.html
+++ b/docs/math_Vector4.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/math_math.js.html b/docs/math_math.js.html
index f4b09f33..edfe93dd 100644
--- a/docs/math_math.js.html
+++ b/docs/math_math.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/renderer_Buffer.js.html b/docs/renderer_Buffer.js.html
index 0f2820fb..c17507ac 100644
--- a/docs/renderer_Buffer.js.html
+++ b/docs/renderer_Buffer.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/renderer_Framebuffer.js.html b/docs/renderer_Framebuffer.js.html
index f919fcd3..c1600387 100644
--- a/docs/renderer_Framebuffer.js.html
+++ b/docs/renderer_Framebuffer.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/renderer_Program.js.html b/docs/renderer_Program.js.html
index 5afae923..7813230c 100644
--- a/docs/renderer_Program.js.html
+++ b/docs/renderer_Program.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/renderer_RenderInfo.js.html b/docs/renderer_RenderInfo.js.html
index f37b1de0..7a64d64e 100644
--- a/docs/renderer_RenderInfo.js.html
+++ b/docs/renderer_RenderInfo.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/renderer_RenderList.js.html b/docs/renderer_RenderList.js.html
index 1dda8cf3..aedec395 100644
--- a/docs/renderer_RenderList.js.html
+++ b/docs/renderer_RenderList.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/renderer_VertexArrayObject.js.html b/docs/renderer_VertexArrayObject.js.html
index b59a6c39..44a48370 100644
--- a/docs/renderer_VertexArrayObject.js.html
+++ b/docs/renderer_VertexArrayObject.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/renderer_WebGLRenderer.js.html b/docs/renderer_WebGLRenderer.js.html
index eeff3e4c..e6561024 100644
--- a/docs/renderer_WebGLRenderer.js.html
+++ b/docs/renderer_WebGLRenderer.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/renderer_WebGLResourceManager.js.html b/docs/renderer_WebGLResourceManager.js.html
index 12fa1b45..d335fa00 100644
--- a/docs/renderer_WebGLResourceManager.js.html
+++ b/docs/renderer_WebGLResourceManager.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/renderer_WebGLState.js.html b/docs/renderer_WebGLState.js.html
index 4fb39ab9..fca82a2a 100644
--- a/docs/renderer_WebGLState.js.html
+++ b/docs/renderer_WebGLState.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/renderer_capabilities.js.html b/docs/renderer_capabilities.js.html
index d457d500..742c6b87 100644
--- a/docs/renderer_capabilities.js.html
+++ b/docs/renderer_capabilities.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/renderer_extensions.js.html b/docs/renderer_extensions.js.html
index 74af34a0..efa313bd 100644
--- a/docs/renderer_extensions.js.html
+++ b/docs/renderer_extensions.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/renderer_glType.js.html b/docs/renderer_glType.js.html
index b07522ee..2ee98ad3 100644
--- a/docs/renderer_glType.js.html
+++ b/docs/renderer_glType.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/semantic.html b/docs/semantic.html
index 88ba795e..62ad779d 100644
--- a/docs/semantic.html
+++ b/docs/semantic.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/shader_Shader.js.html b/docs/shader_Shader.js.html
index 1e561d46..60516d90 100644
--- a/docs/shader_Shader.js.html
+++ b/docs/shader_Shader.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/texture_CubeTexture.js.html b/docs/texture_CubeTexture.js.html
index 4d38886c..30ef70d0 100644
--- a/docs/texture_CubeTexture.js.html
+++ b/docs/texture_CubeTexture.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/texture_DataTexture.js.html b/docs/texture_DataTexture.js.html
index ee9e879f..47fc2ef4 100644
--- a/docs/texture_DataTexture.js.html
+++ b/docs/texture_DataTexture.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/texture_LazyTexture.js.html b/docs/texture_LazyTexture.js.html
index 322e0665..98399927 100644
--- a/docs/texture_LazyTexture.js.html
+++ b/docs/texture_LazyTexture.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/texture_Texture.js.html b/docs/texture_Texture.js.html
index 09caf28d..068a296a 100644
--- a/docs/texture_Texture.js.html
+++ b/docs/texture_Texture.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/utils_Cache.js.html b/docs/utils_Cache.js.html
index 229b3b7a..c50e8047 100644
--- a/docs/utils_Cache.js.html
+++ b/docs/utils_Cache.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/utils_MeshPicker.js.html b/docs/utils_MeshPicker.js.html
index 22355ad9..d2701f2f 100644
--- a/docs/utils_MeshPicker.js.html
+++ b/docs/utils_MeshPicker.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/utils_Ticker.js.html b/docs/utils_Ticker.js.html
index 9f98c6b5..2f1c89a4 100644
--- a/docs/utils_Ticker.js.html
+++ b/docs/utils_Ticker.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
@@ -7726,6 +7748,78 @@
Source: utils/Ticker */ import Ticker from 'hilojs/util/Ticker'; +/** + * 添加定时器对象。定时器对象必须实现 tick 方法。 + * @memberOf Ticker.prototype + * @method addTick + * @param {Object} tickObject + */ + +/** + * 删除定时器对象。 + * @memberOf Ticker.prototype + * @method removeTick + * @param {Object} tickObject + */ + +/** + * 开始计时器 + * @memberOf Ticker.prototype + * @method start + */ + +/** + * 停止计时器 + * @memberOf Ticker.prototype + * @method stop + */ + +/** + * 暂停计时器 + * @memberOf Ticker.prototype + * @method pause + */ + +/** + * 恢复计时器 + * @memberOf Ticker.prototype + * @method resume + */ + +/** + * 延迟指定的时间后调用回调, 类似setTimeout + * @memberOf Ticker.prototype + * @method timeout + * @param {Function} callback + * @param {number} duration 时间周期,单位毫秒 + * @returns {Object} tickObject 定时器对象 + */ + +/** + * 指定的时间周期来调用函数, 类似setInterval + * @memberOf Ticker.prototype + * @method interval + * @param {Function} callback + * @param {number} duration 时间周期,单位毫秒 + * @returns {Object} tickObject 定时器对象 + */ + +/** + * 下次tick时回调 + * @memberOf Ticker.prototype + * @method nextTick + * @param {Function} callback + * @returns {Object} tickObject 定时器对象 + */ + +/** + * 获得测定的运行时帧率。 + * @memberOf Ticker.prototype + * @method getMeasuredFPS + * @returns {number} + */ + + export default Ticker; diff --git a/docs/utils_WebGLSupport.js.html b/docs/utils_WebGLSupport.js.html index f13ac112..7974afe5 100644 --- a/docs/utils_WebGLSupport.js.html +++ b/docs/utils_WebGLSupport.js.html @@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/docs/utils_log.js.html b/docs/utils_log.js.html
index ad8f447c..93382933 100644
--- a/docs/utils_log.js.html
+++ b/docs/utils_log.js.html
@@ -7703,6 +7703,28 @@
-
+ MethodsShow Inherited
+
+
- addTick + +
- removeTick + +
- start + +
- stop + +
- pause + +
- resume + +
- timeout + +
- interval + +
- nextTick + +
- getMeasuredFPS +
-
diff --git a/package.json b/package.json
index 9a890e92..9688458c 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "hilo3d",
- "version": "1.15.7",
+ "version": "1.15.8",
"description": "Hilo3d, a WebGL 3d engine.",
"main": "build/Hilo3d.js",
"types": "types/index.d.ts",
diff --git a/types/index.d.ts b/types/index.d.ts
index 4fee7413..67cc29c1 100644
--- a/types/index.d.ts
+++ b/types/index.d.ts
@@ -36,40 +36,25 @@ declare namespace AnimationStates {
*/
declare const constants: any;
-/**
- * 类属性
- * @property [Statics] - 静态属性
- * @property [Extends] - 继承
- * @property [Mixes] - mixes
- * @property [constructor] - 构造函数
- */
-declare interface ClassProperty {
- /**
- * 静态属性
- */
- Statics?: any;
- /**
- * 继承
- */
- Extends?: any;
- /**
- * mixes
- */
- Mixes?: any;
- /**
- * 构造函数
- */
- constructor?: (...params: any[]) => any;
-}
-
/**
* Class是提供类的创建的辅助工具。
*/
declare namespace Class {
/**
- * @param props
- */
- function create(props: ClassProperty | any): void;
+ * @param params - 类属性
+ * @param [params.Statics] - 静态属性
+ * @param [params.Extends] - 继承
+ * @param [params.Mixes] - mixes
+ * @param [params.constructor] - 构造函数
+ * @param params.[value:string] - 其它属性
+ */
+ function create(params: {
+ Statics?: any;
+ Extends?: any;
+ Mixes?: any;
+ constructor?: (...params: any[]) => any;
+ [value:string]: any;
+ }): void;
}
/**
@@ -771,6 +756,56 @@ declare namespace log {
* Ticker是一个定时器类。它可以按指定帧率重复运行,从而按计划执行代码。
*/
declare class Ticker {
+ /**
+ * 添加定时器对象。定时器对象必须实现 tick 方法。
+ * @param tickObject
+ */
+ addTick(tickObject: any): void;
+ /**
+ * 删除定时器对象。
+ * @param tickObject
+ */
+ removeTick(tickObject: any): void;
+ /**
+ * 开始计时器
+ */
+ start(): void;
+ /**
+ * 停止计时器
+ */
+ stop(): void;
+ /**
+ * 暂停计时器
+ */
+ pause(): void;
+ /**
+ * 恢复计时器
+ */
+ resume(): void;
+ /**
+ * 延迟指定的时间后调用回调, 类似setTimeout
+ * @param callback
+ * @param duration - 时间周期,单位毫秒
+ * @returns tickObject 定时器对象
+ */
+ timeout(callback: (...params: any[]) => any, duration: number): any;
+ /**
+ * 指定的时间周期来调用函数, 类似setInterval
+ * @param callback
+ * @param duration - 时间周期,单位毫秒
+ * @returns tickObject 定时器对象
+ */
+ interval(callback: (...params: any[]) => any, duration: number): any;
+ /**
+ * 下次tick时回调
+ * @param callback
+ * @returns tickObject 定时器对象
+ */
+ nextTick(callback: (...params: any[]) => any): any;
+ /**
+ * 获得测定的运行时帧率。
+ */
+ getMeasuredFPS(): number;
}
/**
@@ -4466,13 +4501,48 @@ declare class ShaderMaterial extends Material {
* @example
* const material = new Hilo3d.PBRMaterial();
* @param [params] - 初始化参数,所有params都会复制到实例上
+ * @param [params.lightType = PBR] - 光照类型,只能为 PBR 或 NONE
+ * @param [params.baseColor = new Color(1, 1, 1)] - 基础颜色
+ * @param [params.baseColorMap] - 基础颜色贴图(sRGB空间)
+ * @param [params.metallic = 1] - 金属度
+ * @param [params.metallicMap] - 金属度贴图
+ * @param [params.roughness = 1] - 粗糙度
+ * @param [params.roughnessMap] - 粗糙度贴图
+ * @param [params.occlusionMap] - 环境光遮蔽贴图
+ * @param [params.occlusionStrength = 1] - 环境光遮蔽强度
+ * @param [params.emission] - 放射光贴图(sRGB 空间),或颜色
+ * @param [params.diffuseEnvMap] - 漫反射辐照(Diffuse IBL)贴图
+ * @param [params.diffuseEnvSphereHarmonics3] - 漫反射 SphericalHarmonics3
+ * @param [params.diffuseEnvIntensity = 1] - 漫反射强度
+ * @param [params.specularEnvMap] - 环境反射(Specular IBL)贴图
+ * @param [params.brdfLUT] - BRDF贴图,跟环境反射贴图一起使用
+ * @param [params.specularEnvIntensity = 1] - 环境反射(Specular IBL)贴图强度
+ * @param params.[value:string] - 其它属性
*/
declare class PBRMaterial extends Material {
- constructor(params?: any);
+ constructor(params?: {
+ lightType?: string;
+ baseColor?: Color;
+ baseColorMap?: Texture;
+ metallic?: number;
+ metallicMap?: Texture;
+ roughness?: number;
+ roughnessMap?: Texture;
+ occlusionMap?: Texture;
+ occlusionStrength?: number;
+ emission?: Texture | Color;
+ diffuseEnvMap?: Texture;
+ diffuseEnvSphereHarmonics3?: SphericalHarmonics3;
+ diffuseEnvIntensity?: number;
+ specularEnvMap?: Texture;
+ brdfLUT?: Texture;
+ specularEnvIntensity?: number;
+ [value:string]: any;
+ });
isPBRMaterial: boolean;
className: string;
/**
- * 光照类型,只能为 PBR
+ * 光照类型,只能为 PBR 或 NONE
*/
readonly lightType: string;
/**
@@ -4540,7 +4610,7 @@ declare class PBRMaterial extends Material {
*/
brdfLUT: Texture;
/**
- * 环境反射(Specular IBL)贴图
+ * 环境反射(Specular IBL)贴图强度
*/
specularEnvIntensity: number;
/**
@@ -4826,9 +4896,34 @@ declare class GeometryMaterial extends BasicMaterial {
* diffuse: new Hilo3d.Color(1, 0, 0, 1)
* });
* @param [params] - 初始化参数,所有params都会复制到实例上
+ * @param [params.lightType = BLINN-PHONG] - 光照类型,支持: NONE, PHONG, BLINN-PHONG, LAMBERT
+ * @param [params.diffuse = new Color(.5, .5, .5)] - 漫反射贴图,或颜色
+ * @param [params.ambient] - 环境光贴图,或颜色
+ * @param [params.specular = new Color(1, 1, 1)] - 镜面贴图,或颜色
+ * @param [params.emission = new Color(0, 0, 0)] - 放射光贴图,或颜色
+ * @param [params.specularEnvMap] - 环境贴图
+ * @param [params.specularEnvMatrix] - 环境贴图变化矩阵,如旋转等
+ * @param [params.reflectivity = 0] - 反射率
+ * @param [params.refractRatio = 0] - 折射比率
+ * @param [params.refractivity = 0] - 折射率
+ * @param [params.shininess = 32] - 高光发光值
+ * @param params.[value:string] - 其它属性
*/
declare class BasicMaterial extends Material {
- constructor(params?: any);
+ constructor(params?: {
+ lightType?: string;
+ diffuse?: Texture | Color;
+ ambient?: Texture | Color;
+ specular?: Texture | Color;
+ emission?: Texture | Color;
+ specularEnvMap?: Texture;
+ specularEnvMatrix?: Matrix4;
+ reflectivity?: number;
+ refractRatio?: number;
+ refractivity?: number;
+ shininess?: number;
+ [value:string]: any;
+ });
isBasicMaterial: boolean;
className: string;
/**
@@ -5278,9 +5373,24 @@ declare class BasicLoader implements EventMixin {
/**
* 聚光灯
* @param [params] - 创建对象的属性参数。可包含此类的所有属性。
+ * @param [params.color = new Color(1, 1, 1)] - 光颜色
+ * @param [params.amount = 1] - 光强度
+ * @param [params.range = 0] - 光照范围, 0 时代表光照范围无限大。
+ * @param [params.direction = new Vector3(0, 0, 1)] - 光方向
+ * @param [params.cutoff = 12.5] - 切光角(角度),落在这个角度之内的光亮度为1
+ * @param [params.outerCutoff = 17.5] - 外切光角(角度),在切光角合外切光角之间的光亮度渐变到0
+ * @param params.[value:string] - 其它属性
*/
declare class SpotLight extends Light {
- constructor(params?: any);
+ constructor(params?: {
+ color?: Color;
+ amount?: number;
+ range?: number;
+ direction?: Vector3;
+ cutoff?: number;
+ outerCutoff?: number;
+ [value:string]: any;
+ });
isSpotLight: boolean;
className: string;
/**
@@ -5300,9 +5410,18 @@ declare class SpotLight extends Light {
/**
* 点光源
* @param [params] - 创建对象的属性参数。可包含此类的所有属性。
+ * @param [params.color = new Color(1, 1, 1)] - 光颜色
+ * @param [params.amount = 1] - 光强度
+ * @param [params.range = 0] - 光照范围, 0 时代表光照范围无限大。
+ * @param params.[value:string] - 其它属性
*/
declare class PointLight extends Light {
- constructor(params?: any);
+ constructor(params?: {
+ color?: Color;
+ amount?: number;
+ range?: number;
+ [value:string]: any;
+ });
isPointLight: boolean;
className: string;
}
@@ -5451,9 +5570,18 @@ declare class Light extends Node {
/**
* 平行光
* @param [params] - 创建对象的属性参数。可包含此类的所有属性。
+ * @param [params.color = new Color(1, 1, 1)] - 光颜色
+ * @param [params.amount = 1] - 光强度
+ * @param [params.direction = new Vector3(0, 0, 1)] - 光方向
+ * @param params.[value:string] - 其它属性
*/
declare class DirectionalLight extends Light {
- constructor(params?: any);
+ constructor(params?: {
+ color?: Color;
+ amount?: number;
+ direction?: Vector3;
+ [value:string]: any;
+ });
isDirectionalLight: boolean;
className: string;
/**
@@ -5515,9 +5643,16 @@ declare class AreaLight extends Light {
/**
* 环境光
* @param [params] - 创建对象的属性参数。可包含此类的所有属性。
+ * @param [params.color = new Color(1, 1, 1)] - 光颜色
+ * @param [params.amount = 1] - 光强度
+ * @param params.[value:string] - 其它属性
*/
declare class AmbientLight extends Light {
- constructor(params?: any);
+ constructor(params?: {
+ color?: Color;
+ amount?: number;
+ [value:string]: any;
+ });
readonly isAmbientLight: boolean;
readonly className: string;
}
@@ -5581,9 +5716,18 @@ declare class AxisHelper extends Node {
/**
* 球形几何体
* @param [params] - 创建对象的属性参数。可包含此类的所有属性。
+ * @param [params.radius = 1] - 半径
+ * @param [params.heightSegments = 16] - 垂直分割面的数量
+ * @param [params.widthSegments = 32] - 水平分割面的数量
+ * @param params.[value:string] - 其它属性
*/
declare class SphereGeometry extends Geometry {
- constructor(params?: any);
+ constructor(params?: {
+ radius?: number;
+ heightSegments?: number;
+ widthSegments?: number;
+ [value:string]: any;
+ });
isSphereGeometry: boolean;
className: string;
/**
@@ -5623,9 +5767,20 @@ declare class SphereGeometry extends Geometry {
/**
* 平面几何体
* @param [params] - 创建对象的属性参数。可包含此类的所有属性。
+ * @param [params.width = 1] - 宽度
+ * @param [params.height = 1] - 高度
+ * @param [params.widthSegments = 1] - 水平分割面的数量
+ * @param [params.heightSegments = 1] - 垂直分割面的数量
+ * @param params.[value:string] - 其它属性
*/
declare class PlaneGeometry extends Geometry {
- constructor(params?: any);
+ constructor(params?: {
+ width?: number;
+ height?: number;
+ widthSegments?: number;
+ heightSegments?: number;
+ [value:string]: any;
+ });
isPlaneGeometry: boolean;
className: string;
/**
@@ -6039,9 +6194,24 @@ declare class Geometry {
/**
* 长方体几何体
* @param [params] - 创建对象的属性参数。可包含此类的所有属性。
+ * @param [params.width = 1] - box的宽度
+ * @param [params.height = 1] - box的高度
+ * @param [params.depth = 1] - box的深度
+ * @param [params.widthSegments = 1] - 水平分割面的数量
+ * @param [params.heightSegments = 1] - 垂直分割面的数量
+ * @param [params.depthSegments = 1] - 深度分割面的数量
+ * @param params.[value:string] - 其它属性
*/
declare class BoxGeometry extends Geometry {
- constructor(params?: any);
+ constructor(params?: {
+ width?: number;
+ height?: number;
+ depth?: number;
+ widthSegments?: number;
+ heightSegments?: number;
+ depthSegments?: number;
+ [value:string]: any;
+ });
isBoxGeometry: boolean;
className: string;
/**
@@ -6330,6 +6500,9 @@ declare class Tween {
* @param [params] - 创建对象的属性参数。可包含此类的所有属性,所有属性会透传给 Renderer。
* @param [params.container] - stage的容器, 如果有,会把canvas加进container里。
* @param [params.canvas] - stage的canvas,不传会自动创建。
+ * @param [params.camera] - stage的摄像机。
+ * @param [params.width = innerWidth] - stage的宽,默认网页宽度
+ * @param [params.height = innerHeight] - stage的高,默认网页高度
* @param [params.pixelRatio = 根据设备自动判断] - 像素密度。
* @param [params.clearColor = new Color(1, 1, 1, 1)] - 背景色。
* @param [params.useFramebuffer = false] - 是否使用Framebuffer,有后处理需求时需要。
@@ -6343,11 +6516,15 @@ declare class Tween {
* @param [params.preserveDrawingBuffer = false] - 是否需要 preserveDrawingBuffer。
* @param [params.failIfMajorPerformanceCaveat = false] - 是否需要 failIfMajorPerformanceCaveat。
* @param [params.gameMode = false] - 是否开启游戏模式,UC 浏览器专用
+ * @param params.[value:string] - 其它属性
*/
declare class Stage extends Node {
constructor(params?: {
container?: HTMLElement;
canvas?: HTMLCanvasElement;
+ camera?: Camera;
+ width?: number;
+ height?: number;
pixelRatio?: number;
clearColor?: Color;
useFramebuffer?: boolean;
@@ -6361,6 +6538,7 @@ declare class Stage extends Node {
preserveDrawingBuffer?: boolean;
failIfMajorPerformanceCaveat?: boolean;
gameMode?: boolean;
+ [value:string]: any;
});
/**
* 渲染器
@@ -6921,9 +7099,16 @@ declare class Node implements EventMixin {
* });
* stage.addChild(mesh);
* @param [params] - 初始化参数,所有params都会复制到实例上
+ * @param [params.geometry] - 几何体
+ * @param [params.material] - 材质
+ * @param params.[value:string] - 其它属性
*/
declare class Mesh extends Node {
- constructor(params?: any);
+ constructor(params?: {
+ geometry?: Geometry;
+ material?: Material;
+ [value:string]: any;
+ });
isMesh: boolean;
className: string;
geometry: Geometry;
@@ -7012,9 +7197,20 @@ declare class EventMixin {
/**
* 透视投影摄像机
* @param [params] - 创建对象的属性参数。可包含此类的所有属性。
+ * @param [params.fov = 50] - 相机视野大小,角度制
+ * @param [params.near = 0.1] - 相机视锥体近平面z
+ * @param [params.far = null] - 相机视锥体远平面z,null 时为无限远
+ * @param [params.aspect = 1] - 宽高比
+ * @param params.[value:string] - 其它属性
*/
declare class PerspectiveCamera extends Camera {
- constructor(params?: any);
+ constructor(params?: {
+ fov?: number;
+ near?: number;
+ far?: number;
+ aspect?: number;
+ [value:string]: any;
+ });
isPerspectiveCamera: boolean;
className: string;
/**
@@ -7038,9 +7234,24 @@ declare class PerspectiveCamera extends Camera {
/**
* 正交投影摄像机
* @param [params] - 创建对象的属性参数。可包含此类的所有属性。
+ * @param [params.left = 1]
+ * @param [params.right = 1]
+ * @param [params.top = 1]
+ * @param [params.bottom = 1]
+ * @param [params.near = 0.1]
+ * @param [params.far = 1]
+ * @param params.[value:string] - 其它属性
*/
declare class OrthographicCamera extends Camera {
- constructor(params?: any);
+ constructor(params?: {
+ left?: number;
+ right?: number;
+ top?: number;
+ bottom?: number;
+ near?: number;
+ far?: number;
+ [value:string]: any;
+ });
isOrthographicCamera: boolean;
className: string;
left: number;
-
-