Skip to content

Commit 71fe468

Browse files
committed
Add .editorconfig
1 parent 96a8033 commit 71fe468

File tree

3 files changed

+28
-12
lines changed

3 files changed

+28
-12
lines changed

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
root = true
2+
3+
[*]
4+
indent_size = 4
5+
indent_style = space
6+
trim_trailing_whitespace = true
7+
end_of_line = lf
8+
9+
[*.yml]
10+
indent_size = 2
11+
12+
[*.anm]
13+
end_of_line = crlf
14+
15+
[*.md]
16+
trim_trailing_whitespace = false

.github/workflows/releaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
run: |
1717
mv script/* ./
1818
zip RotBlur_M -r LICENSE.txt Readme.md RotBlur_M.anm RotBlur_M.frag RotBlur_M.vert Licenses
19-
19+
2020
- name: Create Release
2121
env:
2222
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

script/RotBlur_M.frag

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ mat2 rot_mat(float angle) { return mat2(cos(angle), -sin(angle), sin(angle), cos
1515

1616
void main() {
1717
vec4 color = vec4(0);
18-
mat2 rot1 = rot_mat(stepAngle);
19-
mat2 rot2 = rot_mat(-stepAngle);
20-
vec2 uv1 = (TexCoord * resolution - pivot) * rot_mat(rPos);
21-
vec2 uv2 = uv1;
18+
mat2 rot1 = rot_mat(stepAngle);
19+
mat2 rot2 = rot_mat(-stepAngle);
20+
vec2 uv1 = (TexCoord * resolution - pivot) * rot_mat(rPos);
21+
vec2 uv2 = uv1;
2222

23-
for(int i = 1; i <= quality; i++){
24-
uv1 *= rot1;
25-
color += texture(texture0, clamp((uv1 + pivot) / resolution, 0, 1));
26-
27-
uv2 *= rot2;
28-
color += texture(texture0, clamp((uv2 + pivot) / resolution, 0, 1));
29-
}
23+
for(int i = 1; i <= quality; i++){
24+
uv1 *= rot1;
25+
color += texture(texture0, clamp((uv1 + pivot) / resolution, 0, 1));
26+
27+
uv2 *= rot2;
28+
color += texture(texture0, clamp((uv2 + pivot) / resolution, 0, 1));
29+
}
3030
FragColor = color / (quality * 2);
3131
}

0 commit comments

Comments
 (0)