From 08e7416b7f9ee704fc743284171b45b4c1205dd0 Mon Sep 17 00:00:00 2001 From: Marco Buono Date: Sun, 16 Apr 2023 11:13:01 -0300 Subject: [PATCH] Fix additional documentation links --- crates/bevy_pbr/src/light.rs | 5 ++--- crates/bevy_pbr/src/pbr_material.rs | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/bevy_pbr/src/light.rs b/crates/bevy_pbr/src/light.rs index cb563a3d22..4825678009 100644 --- a/crates/bevy_pbr/src/light.rs +++ b/crates/bevy_pbr/src/light.rs @@ -605,12 +605,11 @@ pub struct NotShadowCaster; #[derive(Component, Reflect, Default)] #[reflect(Component, Default)] pub struct NotShadowReceiver; - /// Add this component to make a [`Mesh`](bevy_render::mesh::Mesh) not receive shadows /// on its diffuse transmission lobe. /// -/// Useful, for example, when a thick translucent mesh using [`StandardMaterial::diffuse_transmission`] -/// has a complicated shape that's hard to model via [`StandardMaterial::thickness`], and you'd like +/// Useful, for example, when a thick translucent mesh using [`StandardMaterial::diffuse_transmission`](crate::pbr_material::StandardMaterial::diffuse_transmission) +/// has a complicated shape that's hard to model via [`StandardMaterial::thickness`](crate::pbr_material::StandardMaterial::thickness), and you'd like /// to avoid self-shadows from affecting the transmitted light. /// /// **Note:** Setting [`NotShadowReceiver`] disables both regular and transmitted shadows. diff --git a/crates/bevy_pbr/src/pbr_material.rs b/crates/bevy_pbr/src/pbr_material.rs index 7d13ae6fe5..782c7fdf67 100644 --- a/crates/bevy_pbr/src/pbr_material.rs +++ b/crates/bevy_pbr/src/pbr_material.rs @@ -154,7 +154,7 @@ pub struct StandardMaterial { /// for the front Lambertian lobe when an object is illuminated primarily from a single direction. /// /// **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`] component. + /// mesh shapes without having to fine tune the thickness, consider using the [`NotTransmittedShadowReceiver`](crate::light::NotTransmittedShadowReceiver) component. pub diffuse_transmission: f32, /// The amount of light transmitted _specularly_ through the material (i.e. via refraction)