Skip to content

Instantly share code, notes, and snippets.

@DGriffin91
DGriffin91 / letterboxing.rs
Last active December 5, 2022 22:20 — forked from cart/letterboxing.rs
Basic Letterboxing
// License: Apache-2.0 / MIT
use bevy::{
core_pipeline::clear_color::ClearColorConfig,
prelude::*,
render::{camera::RenderTarget, render_resource::*, view::RenderLayers},
};
fn main() {
App::new()
@DGriffin91
DGriffin91 / main.rs
Last active July 15, 2023 20:27 — forked from IceSentry/main.rs
Bevy post processing with prepass 0.10
// 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::{