Skip to content

Commit

Permalink
hairparticle fix: culling was turned off by mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
turanszkij committed Feb 17, 2025
1 parent efc8bdd commit 20694ee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions WickedEngine/shaders/hairparticle_simulateCS.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 20694ee

Please sign in to comment.