Skip to content

Commit

Permalink
fixed issue with pointclouds not showing on some gpus
Browse files Browse the repository at this point in the history
  • Loading branch information
joreg committed Nov 23, 2023
1 parent e2ca610 commit 9578932
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions help/shaders/DrawColoredParticles_DrawFX.sdsl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

shader DrawColoredParticles_DrawFX : VS_PS_Base, ShaderUtils
{
StructuredBuffer<float4> ParticlesBuffer;
StructuredBuffer<float3> ParticlesBuffer;
StructuredBuffer<float4> ColorBuffer;

cbuffer PerFrame
Expand All @@ -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];
}

Expand Down

0 comments on commit 9578932

Please sign in to comment.