From 0f8288b0a668f9bc805c5d4c923c69535e9bc70c Mon Sep 17 00:00:00 2001 From: Ben Wallis Date: Tue, 17 Aug 2021 22:28:49 +0100 Subject: [PATCH] Fixed particle shader descriptor --- voxygen/src/render/pipelines/particle.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/voxygen/src/render/pipelines/particle.rs b/voxygen/src/render/pipelines/particle.rs index fb8a1a783e..2a26cf662f 100644 --- a/voxygen/src/render/pipelines/particle.rs +++ b/voxygen/src/render/pipelines/particle.rs @@ -170,7 +170,7 @@ impl Instance { pub fn with_color(&mut self, color: Vec3) { self.inst_col = color.into_array(); } fn desc<'a>() -> wgpu::VertexBufferLayout<'a> { - const ATTRIBUTES: [wgpu::VertexAttribute; 6] = wgpu::vertex_attr_array![2 => Float32, 3 => Float32, 4 => Float32, 5 => Sint32, 6 => Float32x3, 7 => Float32x3]; + const ATTRIBUTES: [wgpu::VertexAttribute; 7] = wgpu::vertex_attr_array![2 => Float32, 3 => Float32, 4 => Float32, 5 => Sint32, 6 => Float32x3, 7 => Float32x3, 8 => Float32x3]; wgpu::VertexBufferLayout { array_stride: mem::size_of::() as wgpu::BufferAddress, step_mode: wgpu::InputStepMode::Instance,