mirror of
https://github.com/guilhermewerner/wgpu-renderer
synced 2025-06-15 13:24:20 +00:00
Update project
This commit is contained in:
@ -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>;
|
@ -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> {
|
Reference in New Issue
Block a user