Skip to content
Snippets Groups Projects
Commit 494adbd5 authored by elom0n's avatar elom0n
Browse files

changed trail length

parent d5296279
No related branches found
No related tags found
1 merge request!106Created initial firework project
......@@ -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();
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment