Skip to content

Commit

Permalink
clean up shader assets
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobhellermann committed Dec 17, 2021
1 parent ed20b33 commit 82a28ae
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 30 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 0 additions & 11 deletions assets/shaders/hot.frag

This file was deleted.

15 changes: 0 additions & 15 deletions assets/shaders/hot.vert

This file was deleted.

File renamed without changes.
2 changes: 1 addition & 1 deletion examples/shader/shader_instancing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ impl FromWorld for CustomPipeline {
let world = world.cell();
let asset_server = world.get_resource::<AssetServer>().unwrap();
asset_server.watch_for_changes().unwrap();
let shader = asset_server.load("shaders/custom_instancing.wgsl");
let shader = asset_server.load("shaders/instancing.wgsl");

let mesh_pipeline = world.get_resource::<MeshPipeline>().unwrap();

Expand Down
4 changes: 2 additions & 2 deletions examples/shader/shader_material_glsl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ impl FromWorld for CustomPipeline {
fn from_world(world: &mut World) -> Self {
let world = world.cell();
let asset_server = world.get_resource::<AssetServer>().unwrap();
let shader_vert = asset_server.load("shaders/custom.vert");
let shader_frag = asset_server.load("shaders/custom.frag");
let shader_vert = asset_server.load("shaders/custom_material.vert");
let shader_frag = asset_server.load("shaders/custom_material.frag");

let mesh_pipeline = world.get_resource::<MeshPipeline>().unwrap();

Expand Down
2 changes: 1 addition & 1 deletion examples/shader/shader_material_minimal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ impl FromWorld for CustomPipeline {
fn from_world(world: &mut World) -> Self {
let world = world.cell();
let asset_server = world.get_resource::<AssetServer>().unwrap();
let shader = asset_server.load("shaders/custom_minimal.wgsl");
let shader = asset_server.load("shaders/custom_material_minimal.wgsl");
let mesh_pipeline = world.get_resource::<MeshPipeline>().unwrap();

CustomPipeline {
Expand Down

0 comments on commit 82a28ae

Please sign in to comment.