Browse Source

Docs: Update MeshMatcapMaterial.

Mugen87 6 years ago
parent
commit
750a8f458f
2 changed files with 4 additions and 3 deletions
  1. 3 2
      docs/api/en/materials/MeshMatcapMaterial.html
  2. 1 1
      docs/scenes/js/material.js

+ 3 - 2
docs/api/en/materials/MeshMatcapMaterial.html

@@ -13,8 +13,9 @@
 		<h1>[name]</h1>
 
 		<p class="desc">
-			Represents a (complete) material including lighting and reflections. Hence, it does not react on lights.
-			Instead, the material uses the shading of a spherical texture (the matcap) and applies it to the target surface.
+			[name] is defined by a MatCap (or Lit Sphere) texture, which encodes the material color and shading.<br/><br/>
+			[name] does not respond to lights since the matcap image file encodes baked lighting.
+			It will cast a shadow onto an object that receives shadows (and shadow clipping works), but it will not self-shadow or receive shadows.
 		</p>
 
 		<iframe id="scene" src="scenes/material-browser.html#MeshMatcapMaterial"></iframe>

+ 1 - 1
docs/scenes/js/material.js

@@ -517,7 +517,7 @@ function chooseFromHash( gui, mesh, geometry ) {
 
 		case 'MeshMatcapMaterial' :
 
-			material = new THREE.MeshMatcapMaterial( { color: 0x2194CE, matcap: matcaps.porcelainWhite } );
+			material = new THREE.MeshMatcapMaterial( { matcap: matcaps.porcelainWhite } );
 			guiMaterial( gui, mesh, material, geometry );
 			guiMeshMatcapMaterial( gui, mesh, material, geometry );