diff --git a/projects/fire_works/shaders/generation.comp b/projects/fire_works/shaders/generation.comp index 445c8f492d221cabaca855ff533817ca609af86c..83b0167779bc6bc1836c52642359bc8419be5152 100644 --- a/projects/fire_works/shaders/generation.comp +++ b/projects/fire_works/shaders/generation.comp @@ -148,7 +148,7 @@ void main() { { const uint tid = atomicAdd(trailIndex, 1) % trails.length(); - const uint trailLen = 64 + int(randomData[(tid + id) % randomData.length()] * 32); + const uint trailLen = 16; // 64 + int(randomData[(tid + id) % randomData.length()] * 32); const uint startIndex = atomicAdd(pointIndex, trailLen) % points.length(); diff --git a/projects/fire_works/shaders/trail.comp b/projects/fire_works/shaders/trail.comp index 3aff9398fe7851d1618abff933b08a0375a83f62..79d95c912ac0087d17043cc2447f8735a1d3f125 100644 --- a/projects/fire_works/shaders/trail.comp +++ b/projects/fire_works/shaders/trail.comp @@ -74,8 +74,8 @@ void main() { const float scaling = points[y].scaling; - position = position - velocity * dt; - velocity = velocity * fading + vec3(0.0f, g, 0.0f) * dt; + // position = position - velocity * dt; + // velocity = velocity * fading + vec3(0.0f, g, 0.0f) * dt; size = size * fading + scaling * dt; points[x].position = position;