Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/extra-animations/carpet.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,13 @@ vec4 single_roll(vec2 uvpos_var, float progress, int direction)
if (direction == 1)
{
pfrag = get_pixel(vec2(1.0 - uv.x, uv.y));
} else if (direction == 2)
} else if (direction == 2)
{
pfrag = get_pixel(vec2(uv.x, 1.0 - uv.y));
} else
} else
{
pfrag = get_pixel(uv);
}
}
}
// store color for fragment mixing with current fragment if translucent
wfrag = mix(pfrag, wfrag, wfrag.a);
Expand Down Expand Up @@ -168,13 +168,13 @@ vec4 single_roll(vec2 uvpos_var, float progress, int direction)
if (direction == 1)
{
pfrag = get_pixel(vec2(1.0 - uv.x, uv.y));
} else if (direction == 2)
} else if (direction == 2)
{
pfrag = get_pixel(vec2(uv.x, 1.0 - uv.y));
} else
} else
{
pfrag = get_pixel(uv);
}
}
}
// compute lighting
pfrag = vec4(clamp(pfrag.rgb + (angle / -M_PI), 0.0, 1.0), pfrag.a);
Expand Down