Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
dfe50c81bd
2 muutettua tiedostoa jossa 57 lisäystä ja 0 poistoa
  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.CustomBlending
 		</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>
 		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 />

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

@@ -21,6 +21,20 @@
 		THREE.CubeUVReflectionMapping
 		THREE.CubeUVRefractionMapping
 		</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>
 		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 />
@@ -46,6 +60,14 @@
 		THREE.ClampToEdgeWrapping
 		THREE.MirroredRepeatWrapping
 		</code>
+		<div>
+			These can also be accessed using:
+		</div>
+		<code>
+		THREE.TextureWrapping.RepeatWrapping
+		THREE.TextureWrapping.ClampToEdgeWrapping
+		THREE.TextureWrapping.MirroredRepeatWrapping
+		</code>
 		<div>
 		These define the texture's [page:Texture.wrapS wrapS] and [page:Texture.wrapT wrapT] properties,
 		which define horizontal and vertical texture wrapping.<br /><br />
@@ -63,6 +85,14 @@
 		THREE.NearestFilter
 		THREE.LinearFilter
 		</code>
+		<div>
+			These can also be accessed using:
+		</div>
+		<code>
+		THREE.TextureFilter.NearestFilter
+		THREE.TextureFilter.LinearFilter
+		</code>
+
 		<div>
 		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
@@ -86,6 +116,18 @@
 		THREE.LinearMipMapNearestFilter
 		THREE.LinearMipMapLinearFilter
 		</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>
 		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