Update project

This commit is contained in:
Werner
2021-11-08 12:17:40 -03:00
parent c5dbf96177
commit 15e8989bef
30 changed files with 873 additions and 851 deletions

View File

@ -1,4 +1,4 @@
// Vertex shader
// Vertex
struct InstanceInput {
[[location(5)]] model_matrix_0: vec4<f32>;
@ -44,7 +44,7 @@ fn main(
return out;
}
// Fragment shader
// Fragment
[[group(0), binding(0)]]
var t_diffuse: texture_2d<f32>;

View File

@ -1,4 +1,4 @@
// Vertex shader
// Vertex
struct VertexInput {
[[location(0)]] position: vec3<f32>;
@ -20,7 +20,7 @@ fn main(
return out;
}
// Fragment shader
// Fragment
[[stage(fragment)]]
fn main(in: VertexOutput) -> [[location(0)]] vec4<f32> {