From ef04badefbaacf255418e2e3fd1ef5cc17f36f25 Mon Sep 17 00:00:00 2001 From: Marco Buono Date: Sun, 16 Apr 2023 18:43:45 -0300 Subject: [PATCH] Add documentation aliases --- crates/bevy_pbr/src/pbr_material.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/bevy_pbr/src/pbr_material.rs b/crates/bevy_pbr/src/pbr_material.rs index 626ee719a8..4d6f58f3da 100644 --- a/crates/bevy_pbr/src/pbr_material.rs +++ b/crates/bevy_pbr/src/pbr_material.rs @@ -155,6 +155,7 @@ pub struct StandardMaterial { /// /// **Note:** Typically used in conjunction with [`StandardMaterial::thickness`]. To avoid self-shadows on complicated /// mesh shapes without having to fine tune the thickness, consider using the [`NotTransmittedShadowReceiver`](crate::light::NotTransmittedShadowReceiver) component. + #[doc(alias = "translucency")] pub diffuse_transmission: f32, /// A map that modulates diffuse transmission via its **A channel**. Multiplied by [`StandardMaterial::diffuse_transmission`] @@ -186,6 +187,7 @@ pub struct StandardMaterial { /// The material's [`StandardMaterial::base_color`] also modulates the transmitted light. /// /// **Note:** Typically used in conjunction with [`StandardMaterial::thickness`] and [`StandardMaterial::ior`]. + #[doc(alias = "refraction")] pub transmission: f32, /// A map that modulates specular transmission via its **R channel**. Multiplied by [`StandardMaterial::transmission`] @@ -214,6 +216,8 @@ pub struct StandardMaterial { /// /// **Note:** Typically used in conjunction with [`StandardMaterial::transmission`] and [`StandardMaterial::ior`], or with /// [`StandardMaterial::diffuse_transmission`]. + #[doc(alias = "volume")] + #[doc(alias = "thin_walled")] pub thickness: f32, /// A map that modulates thickness via its G channel. Multiplied by [`StandardMaterial::thickness`]