Made it bloo

This commit is contained in:
Joshua Barretto 2019-01-12 14:01:01 +00:00
parent 979f47420d
commit 96d01a9293
2 changed files with 2 additions and 1 deletions

View File

@ -20,7 +20,7 @@ impl TitleState {
}
// The background colour
const BG_COLOR: Rgba<f32> = Rgba { r: 0.8, g: 1.0, b: 0.8, a: 1.0 };
const BG_COLOR: Rgba<f32> = Rgba { r: 0.0, g: 0.3, b: 1.0, a: 1.0 };
impl PlayState for TitleState {
fn play(&mut self, global_state: &mut GlobalState) -> PlayStateResult {

View File

@ -84,6 +84,7 @@ impl Renderer {
}
/// Queue the clearing of the color and depth targets ready for a new frame to be rendered.
/// TODO: Make a version of this that doesn't clear the colour target for speed
pub fn clear(&mut self, col: Rgba<f32>) {
self.encoder.clear(&self.tgt_color_view, col.into_array());
self.encoder.clear_depth(&self.tgt_depth_view, 1.0);