mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 12:43:34 +00:00
Update ClearColor Resource docs (#3842)
# Objective - Update the `ClearColor` resource docs as described in #3837 so new users (like me) understand it better ## Solution - Update the docs to use what @alice-i-cecile described in #3837 I took this one up because I got confused by it this weekend. I didn't understand why the "background" was being set by a `ClearColor` resource.
This commit is contained in:
parent
f991c73bdf
commit
6cab36165f
1 changed files with 4 additions and 1 deletions
|
@ -35,7 +35,10 @@ use bevy_render::{
|
|||
RenderApp, RenderStage, RenderWorld,
|
||||
};
|
||||
|
||||
/// Resource that configures the clear color
|
||||
/// When used as a resource, sets the color that is used to clear the screen between frames.
|
||||
///
|
||||
/// This color appears as the "background" color for simple apps, when
|
||||
/// there are portions of the screen with nothing rendered.
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct ClearColor(pub Color);
|
||||
|
||||
|
|
Loading…
Reference in a new issue