diff options
author | jacopograndi <jacopo.grandi@outlook.it> | 2023-05-14 00:02:58 +0200 |
---|---|---|
committer | jacopograndi <jacopo.grandi@outlook.it> | 2023-05-14 00:02:58 +0200 |
commit | e71add5ae10121f7a821456e7f6960ea96210131 (patch) | |
tree | bb988d444f9ad0d7dcbf9388067ab64facb7a94b /assets/shaders | |
parent | f2019713decb9dd1b486e4576eccb1bbac2c1d61 (diff) |
Diffstat (limited to 'assets/shaders')
-rw-r--r-- | assets/shaders/enemy_material.wgsl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/assets/shaders/enemy_material.wgsl b/assets/shaders/enemy_material.wgsl new file mode 100644 index 0000000..4b20d19 --- /dev/null +++ b/assets/shaders/enemy_material.wgsl @@ -0,0 +1,15 @@ +struct EnemyMaterial { + color: vec4<f32>, +}; + +@group(1) @binding(0) +var<uniform> material: EnemyMaterial; + +struct FragmentInput { + #import bevy_pbr::mesh_vertex_output +} + +@fragment +fn fragment(in: FragmentInput) -> @location(0) vec4<f32> { + return material.color * vec4<f32>(in.world_normal, 1.0); +} |