Skip to content

Commit

Permalink
fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
IceSentry committed Oct 27, 2022
1 parent 40591ab commit a3f2121
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
6 changes: 3 additions & 3 deletions crates/bevy_pbr/src/render/mesh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ use bevy_render::{
render_asset::RenderAssets,
render_phase::{EntityRenderCommand, RenderCommandResult, TrackedRenderPass},
render_resource::*,
renderer::{RenderDevice, RenderQueue, RenderTextureFormat},
renderer::{RenderDevice, RenderQueue},
texture::{
DefaultImageSampler, FallbackImagesDepth, FallbackImagesMsaa, GpuImage, Image,
BevyDefault, DefaultImageSampler, FallbackImagesDepth, FallbackImagesMsaa, GpuImage, Image,
ImageSampler, TextureFormatPixelInfo,
},
view::{ComputedVisibility, ViewUniform, ViewUniformOffset, ViewUniforms},
view::{ComputedVisibility, ViewTarget, ViewUniform, ViewUniformOffset, ViewUniforms},
Extract, RenderApp, RenderStage,
};
use bevy_transform::components::GlobalTransform;
Expand Down
7 changes: 1 addition & 6 deletions examples/shader/shader_prepass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ use bevy::{

fn main() {
App::new()
.insert_resource(AssetServerSettings {
watch_for_changes: true,
..Default::default()
})
.insert_resource(Msaa { samples: 4 })
// The prepass is enabled per material
.insert_resource(GlobalMaterialOptions {
Expand Down Expand Up @@ -155,8 +151,7 @@ struct Rotates;

fn rotate(mut q: Query<&mut Transform, With<Rotates>>, time: Res<Time>) {
for mut t in q.iter_mut() {
let rot =
(time.seconds_since_startup().sin() * 0.5 + 0.5) as f32 * std::f32::consts::PI * 2.0;
let rot = (time.elapsed_seconds().sin() * 0.5 + 0.5) as f32 * std::f32::consts::PI * 2.0;
t.rotation = Quat::from_rotation_z(rot);
}
}
Expand Down

0 comments on commit a3f2121

Please sign in to comment.