Skip to content

Commit

Permalink
trying more parameter for orbits
Browse files Browse the repository at this point in the history
  • Loading branch information
tiye committed Apr 24, 2024
1 parent ec21db7 commit 9c24911
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/apps/orbits-2.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ fn pick_param(n: u32) -> vec2f {
case 9u: {
return vec2f(-2.65, -.8);
}
case 10u: {
return vec2f(4., -1.5);
}
default: {
return vec2f(1.158, 1.93);
}
Expand All @@ -86,7 +89,7 @@ fn main(@builtin(global_invocation_id) GlobalInvocationID: vec3<u32>) {
let item = pass_in.particles[index];

let duration = 50.;
let try_idx = u32(item.times2 / duration) % 10u;
let try_idx = u32(item.times2 / duration) % 12u;

let next = iterate(item.pos, try_idx);
if item.times < duration {
Expand Down

0 comments on commit 9c24911

Please sign in to comment.