diff --git a/help/shaders/DrawColoredParticles_DrawFX.sdsl b/help/shaders/DrawColoredParticles_DrawFX.sdsl index ab9d7d7..6ec6470 100644 --- a/help/shaders/DrawColoredParticles_DrawFX.sdsl +++ b/help/shaders/DrawColoredParticles_DrawFX.sdsl @@ -1,7 +1,7 @@  shader DrawColoredParticles_DrawFX : VS_PS_Base, ShaderUtils { - StructuredBuffer ParticlesBuffer; + StructuredBuffer ParticlesBuffer; StructuredBuffer ColorBuffer; cbuffer PerFrame @@ -19,7 +19,7 @@ shader DrawColoredParticles_DrawFX : VS_PS_Base, ShaderUtils stage override void VSMain() { uint id = streams.VertexID; - streams.PositionWS = ParticlesBuffer[id]; + streams.PositionWS = float4(ParticlesBuffer[id], 1); streams.Color = ColorBuffer[id]; }