diff --git a/docs/api/materials/MeshPhysicalMaterial.html b/docs/api/materials/MeshPhysicalMaterial.html new file mode 100644 index 0000000000000000000000000000000000000000..b95c23157917e6ad93ad6e3130ac832893f10eac --- /dev/null +++ b/docs/api/materials/MeshPhysicalMaterial.html @@ -0,0 +1,71 @@ + + + + + + + + + + + [page:Material] → [page:MeshStandardMaterial] → + +

[name]

+ +
An extension of the [page:MeshStandardMaterial] that allows for greater control over reflectivity.
+ + + +

Examples

+ [example:webgl_materials_variations_physical materials / variations / physical]
+ [example:webgl_materials_reflectivity materials / reflectivity] + +

Constructor

+ +

[name]( [page:Object parameters] )

+
+ parameters -- see [page:MeshStandardMaterial] +
+ + +

Properties

+
See the base [page:Material] and [page:MeshStandardMaterial] classes for common properties.
+ +

[property:Float reflectivity]

+
+ Degree of reflectivity, from *0.0* to *1.0*. Default is *0.5*.
+ + This models the reflectivity of non-metallic materials. It has no effect when [page:MeshStandardMaterial.metalness metalness] is *1.0* +
+ +

[property:Float clearCoat]

+
+ ClearCoat level, from *0.0* to *1.0*. Default is *0.0*. +
+ +

[property:Float clearCoatRoughness]

+
+ How rough the clearCoat appears, from *0.0* to *1.0*. Default is *0.0*. +
+ +

Source

+ + [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js] + + diff --git a/docs/api/materials/ShadowMaterial.html b/docs/api/materials/ShadowMaterial.html new file mode 100644 index 0000000000000000000000000000000000000000..2d6418958eba73227d444a2a3d2bf2c20f14e414 --- /dev/null +++ b/docs/api/materials/ShadowMaterial.html @@ -0,0 +1,56 @@ + + + + + + + + + + + [page:Material] → [page:ShaderMaterial] → + +

[name]

+ +
+ This material can recieve shadows, but otherwise is completely transparent. +
+ +

Example

+ [example:webgl_geometry_spline_editor gemoetry / spline / editor] + + +var planeGeometry = new THREE.PlaneGeometry( 2000, 2000 ); +planeGeometry.rotateX( - Math.PI / 2 ); + +var planeMaterial = new THREE.ShadowMaterial(); +planeMaterial.opacity = 0.2; + +var plane = new THREE.Mesh( planeGeometry, planeMaterial ); +plane.position.y = -200; +plane.receiveShadow = true; +scene.add( plane ); + + +

Constructor

+ +

[name]( )

+ + +

Properties

+
See the base [page:Material] and [page:ShaderMaterial] classes for common properties.
+ +

[property:Boolean lights]

+
Whether the material is affected by lights. Default is *true*.
+ +

[property:Boolean transparent]

+
Defines whether this material is transparent. Default is *true*.
+ +

Methods

+
See the base [page:Material] and [page:ShaderMaterial] classes for common methods.
+ +

Source

+ + [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js] + + diff --git a/docs/list.js b/docs/list.js index 965406c8b8f34089fc33cbf3426a75267a8220c0..7cbe03efa51a34d3c1ccff74592819002a7be61a 100644 --- a/docs/list.js +++ b/docs/list.js @@ -125,10 +125,12 @@ var list = { [ "MeshLambertMaterial", "api/materials/MeshLambertMaterial" ], [ "MeshNormalMaterial", "api/materials/MeshNormalMaterial" ], [ "MeshPhongMaterial", "api/materials/MeshPhongMaterial" ], + [ "MeshPhysicalMaterial", "api/materials/MeshPhysicalMaterial" ], [ "MeshStandardMaterial", "api/materials/MeshStandardMaterial" ], [ "PointsMaterial", "api/materials/PointsMaterial" ], [ "RawShaderMaterial", "api/materials/RawShaderMaterial" ], [ "ShaderMaterial", "api/materials/ShaderMaterial" ], + [ "ShadowMaterial", "api/materials/ShadowMaterial" ], [ "SpriteMaterial", "api/materials/SpriteMaterial" ] ],