diff --git a/assets/shaders/custom.wgsl b/assets/shaders/custom.wgsl index 84b85cf..1404bdc 100644 --- a/assets/shaders/custom.wgsl +++ b/assets/shaders/custom.wgsl @@ -40,12 +40,12 @@ fn vertex(vertex: Vertex) -> VertexOutput { return out; } -@group(1) @binding(0) +@group(2) @binding(0) var texture: texture_2d; -@group(1) @binding(1) +@group(2) @binding(1) var texture_sampler: sampler; -@group(1) @binding(2) +@group(2) @binding(2) var time: f32; @fragment diff --git a/src/spine.wgsl b/src/spine.wgsl index 563035e..9e904a1 100644 --- a/src/spine.wgsl +++ b/src/spine.wgsl @@ -40,9 +40,9 @@ fn vertex(vertex: Vertex) -> VertexOutput { return out; } -@group(1) @binding(0) +@group(2) @binding(0) var texture: texture_2d; -@group(1) @binding(1) +@group(2) @binding(1) var texture_sampler: sampler; @fragment