This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// License: Apache-2.0 / MIT | |
use bevy::{ | |
core_pipeline::clear_color::ClearColorConfig, | |
prelude::*, | |
render::{camera::RenderTarget, render_resource::*, view::RenderLayers}, | |
}; | |
fn main() { | |
App::new() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// License: Apache-2.0 / MIT | |
// Adapted from https://gist.github.com/IceSentry/3949ee344857c2745dc961a64e6fc28f | |
//! This example shows how to create a custom render pass that runs after the main pass | |
//! and reads the color texture generated by the main pass, and also the prepass textures. | |
//! | |
//! This is a fairly low level example and assumes some familiarity with rendering concepts and wgpu. | |
use bevy::{ | |
core_pipeline::{ |