Skip to content

Commit 0bdddd8

Browse files
committed
extra-animations: carpet: Change tabs to four spaces in shader
1 parent 729ec2a commit 0bdddd8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/extra-animations/carpet.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,13 @@ vec4 single_roll(vec2 uvpos_var, float progress, int direction)
126126
if (direction == 1)
127127
{
128128
pfrag = get_pixel(vec2(1.0 - uv.x, uv.y));
129-
} else if (direction == 2)
129+
} else if (direction == 2)
130130
{
131131
pfrag = get_pixel(vec2(uv.x, 1.0 - uv.y));
132-
} else
132+
} else
133133
{
134134
pfrag = get_pixel(uv);
135-
}
135+
}
136136
}
137137
// store color for fragment mixing with current fragment if translucent
138138
wfrag = mix(pfrag, wfrag, wfrag.a);
@@ -168,13 +168,13 @@ vec4 single_roll(vec2 uvpos_var, float progress, int direction)
168168
if (direction == 1)
169169
{
170170
pfrag = get_pixel(vec2(1.0 - uv.x, uv.y));
171-
} else if (direction == 2)
171+
} else if (direction == 2)
172172
{
173173
pfrag = get_pixel(vec2(uv.x, 1.0 - uv.y));
174-
} else
174+
} else
175175
{
176176
pfrag = get_pixel(uv);
177-
}
177+
}
178178
}
179179
// compute lighting
180180
pfrag = vec4(clamp(pfrag.rgb + (angle / -M_PI), 0.0, 1.0), pfrag.a);

0 commit comments

Comments
 (0)