Skip to content

Commit

Permalink
uv test fix: no animation, no layering (publish for cross-device tests)
Browse files Browse the repository at this point in the history
  • Loading branch information
uuuulala committed Dec 17, 2024
1 parent 82139fb commit f59c979
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/shaders/src/shaders/smoke-ring.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ export const smokeRingFragmentShader = `
float atg = atan(uv.y, uv.x);
vec2 polar_uv = vec2(atg, -.2 * t + 2. * length(uv));
polar_uv *= u_scale;
vec2 polar_uv = vec2(atg, length(uv));
// polar_uv *= u_scale;
float noise_left = fbm(polar_uv);
polar_uv.x = mod(polar_uv.x, u_scale * TWO_PI);
float noise_right = fbm(polar_uv);
float noise = mix(noise_right, noise_left, smoothstep(-.2, .2, uv.x));
// polar_uv.x = mod(polar_uv.x, u_scale * TWO_PI);
// float noise_right = fbm(polar_uv);
float noise = noise_left;
float center_shape = 1. - pow(smoothstep(2., .0, length(uv)), 50.);
Expand Down

0 comments on commit f59c979

Please sign in to comment.