Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Add MeshPhysicalMaterial.transparency. #18695

Merged
merged 1 commit into from
Feb 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion docs/api/en/materials/MeshPhysicalMaterial.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ <h2>Examples</h2>
<p>
[example:webgl_materials_variations_physical materials / variations / physical]<br />
[example:webgl_materials_physical_clearcoat materials / physical / clearcoat]<br />
[example:webgl_materials_physical_reflectivity materials / physical / reflectivity]
[example:webgl_materials_physical_reflectivity materials / physical / reflectivity]<br />
[example:webgl_materials_physical_transparency materials / physical / transparency]
</p>

<h2>Constructor</h2>
Expand Down Expand Up @@ -95,6 +96,17 @@ <h3>[property:Float reflectivity]</h3>
This models the reflectivity of non-metallic materials. It has no effect when [page:MeshStandardMaterial.metalness metalness] is *1.0*
</p>

<h3>[property:Float transparency]</h3>
<p>
Degree of transparency, from *0.0* to *1.0*. Default is *0.0*.<br />

Thin, transparent or semitransparent, plastic or glass materials remain largely reflective even if they are mostly transparent.

The transparency property can be used to model these materials.<br />

When transparency is non-zero, [page:Material.opacity opacity] should be set to *1*.
</p>

<h2>Methods</h2>
<p>See the base [page:Material] and [page:MeshStandardMaterial] classes for common methods.</p>

Expand Down
14 changes: 13 additions & 1 deletion docs/api/zh/materials/MeshPhysicalMaterial.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ <h2>例子(Examples)</h2>
<p>
[example:webgl_materials_variations_physical materials / variations / physical]<br />
[example:webgl_materials_physical_clearcoat materials / physical / clearcoat]<br />
[example:webgl_materials_physical_reflectivity materials / physical / reflectivity]
[example:webgl_materials_physical_reflectivity materials / physical / reflectivity]<br />
[example:webgl_materials_physical_transparency materials / physical / transparency]
</p>

<h2>构造函数(Constructor)</h2>
Expand Down Expand Up @@ -88,6 +89,17 @@ <h3>[property:Float reflectivity]</h3>
这模拟了非金属材质的反射率。当[page:MeshStandardMaterial]为*1.0*时,此属性无效。
</p>

<h3>[property:Float transparency]</h3>
<p>
Degree of transparency, from *0.0* to *1.0*. Default is *0.0*.<br />

Thin, transparent or semitransparent, plastic or glass materials remain largely reflective even if they are mostly transparent.

The transparency property can be used to model these materials.<br />

When transparency is non-zero, [page:Material.opacity opacity] should be set to *1*.
</p>

<h2>方法(Methods)</h2>
<p>共有方法请参见其基类[page:Material] 和[page:MeshStandardMaterial]。</p>

Expand Down