Doc custom CameraProjection requires use of plugin (#13140)
# Objective
Documentation should mention the two plugins required for your custom
`CameraProjection` to work.
## Solution
Documented!
---
I tried linking to `bevy_pbr::PbrProjectionPlugin` from
`bevy_render:📷:CameraProjection` but it wasn't in scope. Is there
a trick to it?
			
			
This commit is contained in:
		
							parent
							
								
									ba33672c43
								
							
						
					
					
						commit
						d1099ac7db
					
				@ -70,6 +70,9 @@ pub struct CameraUpdateSystem;
 | 
				
			|||||||
/// to recompute the camera projection matrix of the [`Camera`] component attached to
 | 
					/// to recompute the camera projection matrix of the [`Camera`] component attached to
 | 
				
			||||||
/// the same entity as the component implementing this trait.
 | 
					/// 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
 | 
					/// [`Camera`]: crate::camera::Camera
 | 
				
			||||||
pub trait CameraProjection {
 | 
					pub trait CameraProjection {
 | 
				
			||||||
    fn get_projection_matrix(&self) -> Mat4;
 | 
					    fn get_projection_matrix(&self) -> Mat4;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user