From 97f98999a0161d03c5dc459fb2aa9db888037707 Mon Sep 17 00:00:00 2001 From: Michael Herzog Date: Mon, 4 Apr 2022 20:39:49 +0200 Subject: [PATCH] Docs: Improve MeshPhysicalMaterial page. (#23831) * Docs: Improve MeshPhysicalMaterial page. * Docs: Clean up. --- .../en/materials/MeshPhysicalMaterial.html | 20 ++++++++++++++++++ .../zh/materials/MeshPhysicalMaterial.html | 21 +++++++++++++++++++ 2 files changed, 41 insertions(+) diff --git a/docs/api/en/materials/MeshPhysicalMaterial.html b/docs/api/en/materials/MeshPhysicalMaterial.html index f840341e8049d2..262726560c75a5 100644 --- a/docs/api/en/materials/MeshPhysicalMaterial.html +++ b/docs/api/en/materials/MeshPhysicalMaterial.html @@ -79,6 +79,16 @@

[name]( [param:Object parameters] )

Properties

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

+

[property:Color attenuationColor]

+

+ The color that white light turns into due to absorption when reaching the attenuation distance. Default is *white* (0xffffff). +

+ +

[property:Float attenuationDistance]

+

+ Density of the medium given as the average distance that light travels in the medium before interacting with a particle. The value is given in world space. Default is *0*. +

+

[property:Float clearcoat]

Represents the intensity of the clear coat layer, from *0.0* to *1.0*. Use clear coat related properties to enable multilayer @@ -180,6 +190,16 @@

[property:Texture specularColorMap]

The RGB channels of this texture are multiplied against [page:.specularColor], for per-pixel control over specular color. Default is *null*.

+

[property:Float thickness]

+

+ The thickness of the volume beneath the surface. The value is given in the coordinate space of the mesh. If the value is 0 the material is thin-walled. Otherwise the material is a volume boundary. Default is *0*. +

+ +

[property:Texture thicknessMap]

+

+ A texture that defines the thickness, stored in the G channel. This will be multiplied by [page:.thickness]. Default is *null*. +

+

[property:Float transmission]

Degree of transmission (or optical transparency), from *0.0* to *1.0*. Default is *0.0*.
diff --git a/docs/api/zh/materials/MeshPhysicalMaterial.html b/docs/api/zh/materials/MeshPhysicalMaterial.html index 99833a453067e9..9d55fcaff24632 100644 --- a/docs/api/zh/materials/MeshPhysicalMaterial.html +++ b/docs/api/zh/materials/MeshPhysicalMaterial.html @@ -70,6 +70,16 @@

[name]( [param:Object parameters] )

属性(Properties)

共有属性请参见其基类[page:Material]和[page:MeshStandardMaterial]。

+

[property:Color attenuationColor]

+

+ The color that white light turns into due to absorption when reaching the attenuation distance. Default is *white* (0xffffff). +

+ +

[property:Float attenuationDistance]

+

+ Density of the medium given as the average distance that light travels in the medium before interacting with a particle. The value is given in world space. Default is *0*. +

+

[property:Float clearcoat]

表示clear coat层的强度,范围从*0.0*到*1.0*m,当需要在表面加一层薄薄的半透明材质的时候,可以使用与clear coat相关的属性,默认为*0.0*; @@ -165,6 +175,17 @@

[property:Texture specularColorMap]

此纹理的alpha通道将与[page:.specularColor]相乘,用于逐像素地控制高光颜色。默认值为*null*。

+

[property:Float thickness]

+

+ The thickness of the volume beneath the surface. The value is given in the coordinate space of the mesh. If the value is 0 the material is thin-walled. Otherwise the material is a volume boundary. Default is *0*. +

+ +

[property:Texture thicknessMap]

+

+ A texture that defines the thickness, stored in the G channel. This will be multiplied by [page:.thickness]. Default is *null*. +

+ +

[property:Float transmission]

透光率(或者说透光性),范围从*0.0*到*1.0*。默认值是*0.0*。