Skip to content

Commit

Permalink
Fix particle system not able to render 2x2 particle texture. #2126 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
holance authored Feb 1, 2024
1 parent 1f0b0d7 commit 03e297b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ void main(uint3 GroupThreadID : SV_GroupThreadID)
{
uint rndNumber1 = rand_lcg(state);
uint rndNumber2 = rand_lcg(state);
p.TexColRow = uint2(rndNumber1 % max(1, NumTexCol) - 1, rndNumber2 % max(1, NumTexRow) - 1);
p.TexColRow = uint2(rndNumber1 % max(1, NumTexCol), rndNumber2 % max(1, NumTexRow));
}
else
{
Expand All @@ -78,4 +78,4 @@ void main(uint3 GroupThreadID : SV_GroupThreadID)
NewSimulationState.Append(p);
}

#endif
#endif

0 comments on commit 03e297b

Please sign in to comment.