MeshPhysicalMaterial 网格物理材质

—> MeshStandardMaterial —> Material

MeshStandardMaterial 的子类, 反光区域比较集中, 没有 MeshStandardMaterial 那么大的光圈.

function MeshPhysicalMaterial( parameters ) { } var geometry = new THREE.BoxGeometry(6, 6, 6), material = new THREE.MeshPhysicalMaterial({color: 0xb180e3}), mesh = new THREE.Mesh(geometry, material); scene.add(mesh);

Attributes

type : String

Default value : 'MeshPhysicalMaterial'
Description : 类型

defines : Object

Default value : { 'PHYSICAL': '' }
Description : 定义.

clearCoat : Float ( 0 ~ 1 )

Default value : 0
Description : 透明涂层

clearCoatRoughness : Float ( 0 ~ 1 )

Default value : 0
Description : 透明涂层粗糙度

reflectivity : Float

Default value : 0.5
Description : 反射率