mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Made it bloo
This commit is contained in:
parent
979f47420d
commit
96d01a9293
@ -20,7 +20,7 @@ impl TitleState {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// The background colour
|
// 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 {
|
impl PlayState for TitleState {
|
||||||
fn play(&mut self, global_state: &mut GlobalState) -> PlayStateResult {
|
fn play(&mut self, global_state: &mut GlobalState) -> PlayStateResult {
|
||||||
|
@ -84,6 +84,7 @@ impl Renderer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Queue the clearing of the color and depth targets ready for a new frame to be rendered.
|
/// 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>) {
|
pub fn clear(&mut self, col: Rgba<f32>) {
|
||||||
self.encoder.clear(&self.tgt_color_view, col.into_array());
|
self.encoder.clear(&self.tgt_color_view, col.into_array());
|
||||||
self.encoder.clear_depth(&self.tgt_depth_view, 1.0);
|
self.encoder.clear_depth(&self.tgt_depth_view, 1.0);
|
||||||
|
Loading…
Reference in New Issue
Block a user