From 9578932e9d5ef0b99946fa0611a0a1bbb08452f9 Mon Sep 17 00:00:00 2001 From: joreg Date: Thu, 23 Nov 2023 13:25:39 +0100 Subject: [PATCH] fixed issue with pointclouds not showing on some gpus --- help/shaders/DrawColoredParticles_DrawFX.sdsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]; }