From f7e09b853a18ffd7f40c3222351714f4efba9e3a Mon Sep 17 00:00:00 2001 From: Kim Simmons Date: Mon, 29 Apr 2024 16:45:14 +0200 Subject: [PATCH] Doc custom CameraProjection requires use of plugin --- crates/bevy_render/src/camera/projection.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/bevy_render/src/camera/projection.rs b/crates/bevy_render/src/camera/projection.rs index 2ea1dc5535fcd..c8495ffbf39d1 100644 --- a/crates/bevy_render/src/camera/projection.rs +++ b/crates/bevy_render/src/camera/projection.rs @@ -70,6 +70,9 @@ pub struct CameraUpdateSystem; /// to recompute the camera projection matrix of the [`Camera`] component attached to /// the same entity as the component implementing this trait. /// +/// Use the plugins [`CameraProjectionPlugin`] and `bevy::pbr::PbrProjectionPlugin` to setup the +/// systems for your [`CameraProjection`] implementation. +/// /// [`Camera`]: crate::camera::Camera pub trait CameraProjection { fn get_projection_matrix(&self) -> Mat4;