Fix crudely for bevy 0.13

This commit is contained in:
2024-04-12 15:29:08 +02:00
parent 58d3258448
commit 824231a86b
7 changed files with 916 additions and 935 deletions

View File

@@ -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>();