diff options
Diffstat (limited to 'assets')
-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); +} |