Skip to content

Commit 647b071

Browse files
authored
fix some camera component links (#20392)
# Objective - fix some camera component links ## Solution - fix some camera component links ## Testing - ci
1 parent 197cbcb commit 647b071

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

crates/bevy_camera/src/camera.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ pub struct ComputedCameraValues {
176176
pub old_sub_camera_view: Option<SubCameraView>,
177177
}
178178

179-
/// How much energy a `Camera3d` absorbs from incoming light.
179+
/// How much energy a [`Camera3d`](crate::Camera3d) absorbs from incoming light.
180180
///
181181
/// <https://en.wikipedia.org/wiki/Exposure_(photography)>
182182
#[derive(Component, Clone, Copy, Reflect)]
@@ -322,8 +322,8 @@ pub enum ViewportConversionError {
322322
/// but custom render graphs can also be defined. Inserting a [`Camera`] with no render
323323
/// graph will emit an error at runtime.
324324
///
325-
/// [`Camera2d`]: https://docs.rs/bevy/latest/bevy/core_pipeline/core_2d/struct.Camera2d.html
326-
/// [`Camera3d`]: https://docs.rs/bevy/latest/bevy/core_pipeline/core_3d/struct.Camera3d.html
325+
/// [`Camera2d`]: crate::Camera2d
326+
/// [`Camera3d`]: crate::Camera3d
327327
#[derive(Component, Debug, Reflect, Clone)]
328328
#[reflect(Component, Default, Debug, Clone)]
329329
#[require(

crates/bevy_camera/src/primitives.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ impl HalfSpace {
235235
/// This process is called frustum culling, and entities can opt out of it using
236236
/// the [`NoFrustumCulling`] component.
237237
///
238-
/// The frustum component is typically added automatically for cameras, either `Camera2d` or `Camera3d`.
238+
/// The frustum component is typically added automatically for cameras, either [`Camera2d`] or [`Camera3d`].
239239
/// It is usually updated automatically by [`update_frusta`] from the
240240
/// [`CameraProjection`] component and [`GlobalTransform`] of the camera entity.
241241
///
@@ -244,6 +244,8 @@ impl HalfSpace {
244244
/// [`update_frusta`]: crate::visibility::update_frusta
245245
/// [`CameraProjection`]: crate::CameraProjection
246246
/// [`GlobalTransform`]: bevy_transform::components::GlobalTransform
247+
/// [`Camera2d`]: crate::Camera2d
248+
/// [`Camera3d`]: crate::Camera3d
247249
#[derive(Component, Clone, Copy, Debug, Default, Reflect)]
248250
#[reflect(Component, Default, Debug, Clone)]
249251
pub struct Frustum {

0 commit comments

Comments
 (0)