From 20694ee47ace951fe3782b6b66f90535ca72d2f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tur=C3=A1nszki=20J=C3=A1nos?= Date: Mon, 17 Feb 2025 07:37:28 +0100 Subject: [PATCH] hairparticle fix: culling was turned off by mistake --- WickedEngine/shaders/hairparticle_simulateCS.hlsl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/WickedEngine/shaders/hairparticle_simulateCS.hlsl b/WickedEngine/shaders/hairparticle_simulateCS.hlsl index 7e70c6dfb..8176e2481 100644 --- a/WickedEngine/shaders/hairparticle_simulateCS.hlsl +++ b/WickedEngine/shaders/hairparticle_simulateCS.hlsl @@ -375,8 +375,7 @@ void main(uint3 DTid : SV_DispatchThreadID, uint3 Gid : SV_GroupID, uint groupIn sphere.center = (base + tail_next) * 0.5; sphere.radius = len; - bool visible = !distance_culled && GetCamera().frustum.intersects(sphere); - visible = true; + const bool visible = !distance_culled && GetCamera().frustum.intersects(sphere); // Optimization: reduce to 1 atomic operation per wave const uint waveAppendCount = WaveActiveCountBits(visible);