Fix crudely for bevy 0.13
This commit is contained in:
@@ -1,9 +1,4 @@
|
||||
struct FragmentInput {
|
||||
@builtin(position) fragment_coordinate: vec4<f32>,
|
||||
@location(0) world_position: vec4<f32>,
|
||||
@location(1) world_normal: vec3<f32>,
|
||||
@location(2) uv: vec2<f32>,
|
||||
};
|
||||
#import bevy_sprite::mesh2d_vertex_output::VertexOutput
|
||||
|
||||
struct TileLight {
|
||||
color: vec4<f32>,
|
||||
@@ -18,11 +13,11 @@ struct CanvasMaterial {
|
||||
};
|
||||
|
||||
|
||||
@group(1) @binding(0)
|
||||
@group(2) @binding(0)
|
||||
var<uniform> canvas_material: CanvasMaterial;
|
||||
|
||||
@fragment
|
||||
fn fragment(input: FragmentInput) -> @location(0) vec4<f32> {
|
||||
fn fragment(input: VertexOutput) -> @location(0) vec4<f32> {
|
||||
var output_color = canvas_material.ambient_color;
|
||||
|
||||
var lighting = vec4<f32>();
|
||||
|
||||
Reference in New Issue
Block a user