Skip to content

Commit 6596a79

Browse files
committed
move to core_pipeline
1 parent ec128ca commit 6596a79

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

crates/bevy_pbr/src/fullscreen_material.rs renamed to crates/bevy_core_pipeline/src/fullscreen_material.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
33
use std::marker::PhantomData;
44

5+
use crate::{core_3d::graph::Core3d, FullscreenShader};
56
use bevy_app::{App, Plugin};
67
use bevy_asset::AssetServer;
7-
use bevy_core_pipeline::{core_3d::graph::Core3d, FullscreenShader};
88
use bevy_ecs::{
99
component::Component,
1010
query::QueryItem,

crates/bevy_core_pipeline/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ pub mod core_3d;
1414
pub mod deferred;
1515
pub mod dof;
1616
pub mod experimental;
17+
pub mod fullscreen_material;
1718
pub mod motion_blur;
1819
pub mod msaa_writeback;
1920
pub mod oit;

crates/bevy_pbr/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ pub mod decal;
3131
pub mod deferred;
3232
mod extended_material;
3333
mod fog;
34-
pub mod fullscreen_material;
3534
mod light_probe;
3635
mod lightmap;
3736
mod material;

examples/shader/fullscreen_material.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
//! This is currently limited to 3d only but work is in progress to make it work in 2d
44
55
use bevy::{
6-
core_pipeline::core_3d::graph::Node3d,
7-
pbr::fullscreen_material::{FullscreenMaterial, FullscreenMaterialPlugin},
6+
core_pipeline::{
7+
core_3d::graph::Node3d,
8+
fullscreen_material::{FullscreenMaterial, FullscreenMaterialPlugin},
9+
},
810
prelude::*,
911
shader::ShaderRef,
1012
};
@@ -40,7 +42,7 @@ fn setup(
4042
commands.spawn((
4143
Mesh3d(meshes.add(Cuboid::default())),
4244
MeshMaterial3d(materials.add(Color::srgb(0.8, 0.7, 0.6))),
43-
Transform::from_xyz(0.0, 0.5, 0.0),
45+
Transform::default(),
4446
));
4547
// light
4648
commands.spawn(DirectionalLight {

0 commit comments

Comments
 (0)