فهرست منبع

Added constant collection objects to docs (#10087)

* Added constant collection objects to docs

* Update Materials.html

* Switched to THREE.BlendingMode.NoBlending

Instead of THREE.BlendingMode['NoBlending']

* Update Textures.html
Lewy Blue 8 سال پیش
والد
کامیت
dfe50c81bd
2فایلهای تغییر یافته به همراه57 افزوده شده و 0 حذف شده
  1. 15 0
      docs/api/constants/Materials.html
  2. 42 0
      docs/api/constants/Textures.html

+ 15 - 0
docs/api/constants/Materials.html

@@ -60,6 +60,21 @@
 		THREE.MultiplyBlending
 		THREE.MultiplyBlending
 		THREE.CustomBlending
 		THREE.CustomBlending
 		</code>
 		</code>
+
+		<div>
+			These can also be accessed using:
+		</div>
+		
+		<code>
+		THREE.BlendingMode.NoBlending
+		THREE.BlendingMode.NormalBlending
+		THREE.BlendingMode.AdditiveBlending
+		THREE.BlendingMode.SubtractiveBlending
+		THREE.BlendingMode.MultiplyBlending
+		THREE.BlendingMode.CustomBlending
+		</code>
+
+
 		<div>
 		<div>
 		These control the source and destination blending equations for the material's RGB and Alpha sent to the WebGLRenderer for use by WebGL.<br />
 		These control the source and destination blending equations for the material's RGB and Alpha sent to the WebGLRenderer for use by WebGL.<br />
 		[page:Constant NormalBlending] is the default.<br />
 		[page:Constant NormalBlending] is the default.<br />

+ 42 - 0
docs/api/constants/Textures.html

@@ -21,6 +21,20 @@
 		THREE.CubeUVReflectionMapping
 		THREE.CubeUVReflectionMapping
 		THREE.CubeUVRefractionMapping
 		THREE.CubeUVRefractionMapping
 		</code>
 		</code>
+		<div>
+			These can also be accessed using:
+		</div>
+		<code>
+		THREE.TextureMappingUVMapping
+		THREE.TextureMapping.CubeReflectionMapping
+		THREE.TextureMapping.CubeRefractionMapping
+		THREE.TextureMapping.EquirectangularReflectionMapping
+		THREE.TextureMapping.EquirectangularRefractionMapping
+		THREE.TextureMapping.SphericalReflectionMapping
+		THREE.TextureMapping.CubeUVReflectionMapping
+		THREE.TextureMapping.CubeUVRefractionMapping
+		</code>
+
 		<div>
 		<div>
 		These define the texture's mapping mode.<br />
 		These define the texture's mapping mode.<br />
 		[page:Constant UVMapping] is the default, and maps the texture using the mesh's UV coordinates.<br /><br />
 		[page:Constant UVMapping] is the default, and maps the texture using the mesh's UV coordinates.<br /><br />
@@ -46,6 +60,14 @@
 		THREE.ClampToEdgeWrapping
 		THREE.ClampToEdgeWrapping
 		THREE.MirroredRepeatWrapping
 		THREE.MirroredRepeatWrapping
 		</code>
 		</code>
+		<div>
+			These can also be accessed using:
+		</div>
+		<code>
+		THREE.TextureWrapping.RepeatWrapping
+		THREE.TextureWrapping.ClampToEdgeWrapping
+		THREE.TextureWrapping.MirroredRepeatWrapping
+		</code>
 		<div>
 		<div>
 		These define the texture's [page:Texture.wrapS wrapS] and [page:Texture.wrapT wrapT] properties,
 		These define the texture's [page:Texture.wrapS wrapS] and [page:Texture.wrapT wrapT] properties,
 		which define horizontal and vertical texture wrapping.<br /><br />
 		which define horizontal and vertical texture wrapping.<br /><br />
@@ -63,6 +85,14 @@
 		THREE.NearestFilter
 		THREE.NearestFilter
 		THREE.LinearFilter
 		THREE.LinearFilter
 		</code>
 		</code>
+		<div>
+			These can also be accessed using:
+		</div>
+		<code>
+		THREE.TextureFilter.NearestFilter
+		THREE.TextureFilter.LinearFilter
+		</code>
+
 		<div>
 		<div>
 		For use with a texture's [page:Texture.magFilter magFilter]	property,
 		For use with a texture's [page:Texture.magFilter magFilter]	property,
 		these define the texture magnification function to be used when the pixel being textured maps to an
 		these define the texture magnification function to be used when the pixel being textured maps to an
@@ -86,6 +116,18 @@
 		THREE.LinearMipMapNearestFilter
 		THREE.LinearMipMapNearestFilter
 		THREE.LinearMipMapLinearFilter
 		THREE.LinearMipMapLinearFilter
 		</code>
 		</code>
+		<div>
+			These can also be accessed using:
+		</div>
+		<code>
+		THREE.TextureFilter.NearestFilter
+		THREE.TextureFilter.NearestMipMapNearestFilter
+		THREE.TextureFilter.NearestMipMapLinearFilter
+		THREE.TextureFilter.LinearFilter
+		THREE.TextureFilter.LinearMipMapNearestFilter
+		THREE.TextureFilter.LinearMipMapLinearFilter
+		</code>
+
 		<div>
 		<div>
 		For use with a texture's [page:Texture.minFilter minFilter]	property, these define
 		For use with a texture's [page:Texture.minFilter minFilter]	property, these define
 		the texture minifying function that is used whenever the pixel being textured maps
 		the texture minifying function that is used whenever the pixel being textured maps