Skip to content

Commit

Permalink
investigating deployment fail [2]
Browse files Browse the repository at this point in the history
  • Loading branch information
uuuulala committed Jan 20, 2025
1 parent d8c3ac3 commit 8ce0841
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/src/app/radial-swirl/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const RadialSwirlWithControls = () => {
colorStripe1: { value: defaults.colorStripe1 },
colorStripe2: { value: defaults.colorStripe2 },
seed: { value: defaults.seed, min: 0, max: 9999 },
speed: { value: defaults.speed, min: 0, max: 1 },
speed: { value: defaults.speed, min: -1, max: 1 },
density: { value: defaults.density, min: 0, max: 2 },
proportion: { value: defaults.proportion, min: 0, max: 1 },
stripe1: { value: defaults.stripe1, min: 0, max: 1 },
Expand Down
3 changes: 2 additions & 1 deletion packages/shaders/src/shaders/radial-swirl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ void main() {
float edge_w = .5 * u_density * fwidth(deformed_uv.y);
float fst_color_shape = smoothstep(scaling * pow(u_proportion, 7.) - edge_w, scaling * pow(u_proportion, 7.) + edge_w, deformed_uv.y);
edge_w = .5 * u_density * fwidth(deformed_uv.x);
// edge_w = .5 * u_density * fwidth(deformed_uv.x);
edge_w = .1;
float scd_color_shape = smoothstep(deformed_uv.x - edge_w, deformed_uv.x + edge_w, scaling * (u_stripe1 - 1.));
float trd_color_shape = smoothstep(-deformed_uv.x - edge_w, -deformed_uv.x + edge_w, scaling * (u_stripe2 - 1.));
Expand Down

0 comments on commit 8ce0841

Please sign in to comment.