From a0690701aa8f3c4ba996a7ccb30f45fbf8cd9497 Mon Sep 17 00:00:00 2001 From: Turanszki Janos Date: Sat, 18 Apr 2020 12:05:56 +0100 Subject: [PATCH] hair particle fix --- WickedEngine/hairparticle_simulateCS.hlsl | 2 +- WickedEngine/wiVersion.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/WickedEngine/hairparticle_simulateCS.hlsl b/WickedEngine/hairparticle_simulateCS.hlsl index 6844b64d6..96314288d 100644 --- a/WickedEngine/hairparticle_simulateCS.hlsl +++ b/WickedEngine/hairparticle_simulateCS.hlsl @@ -63,7 +63,7 @@ void main(uint3 DTid : SV_DispatchThreadID, uint3 Gid : SV_GroupID, uint groupIn float length2 = meshVertexBuffer_length[i2]; // random barycentric coords: - float2 uv = hammersley2d(DTid.x, xHairStrandCount); + float2 uv = float2((Gid.x + 1.0f) / (float)xHairNumDispatchGroups, (DTid.x + 1.0f) / (float)THREADCOUNT_SIMULATEHAIR); float seed = xHairRandomSeed; float f = rand(seed, uv); float g = rand(seed, uv); diff --git a/WickedEngine/wiVersion.cpp b/WickedEngine/wiVersion.cpp index 5a7598c3d..1104f6b61 100644 --- a/WickedEngine/wiVersion.cpp +++ b/WickedEngine/wiVersion.cpp @@ -9,7 +9,7 @@ namespace wiVersion // minor features, major updates const int minor = 39; // minor bug fixes, alterations, refactors, updates - const int revision = 68; + const int revision = 67; long GetVersion()