Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Eskil Abrahamsen-Blomfeldt
Colorize Gaussian Blur Blog
Commits
91d08e27
Commit
91d08e27
authored
Sep 12, 2022
by
Eskil Abrahamsen-Blomfeldt
Browse files
Delete unused shader
parent
4c87d139
Changes
1
Hide whitespace changes
Inline
Side-by-side
blur.frag
deleted
100644 → 0
View file @
4c87d139
#version 440
layout
(
location
=
0
)
in
vec2
qt_TexCoord0
;
layout
(
location
=
0
)
out
vec4
fragColor
;
layout
(
std140
,
binding
=
0
)
uniform
buf
{
mat4
qt_Matrix
;
float
qt_Opacity
;
vec2
step
;
int
radius
;
};
layout
(
binding
=
1
)
uniform
sampler2D
src
;
void
main
(
void
)
{
vec3
sum
=
vec3
(
0
.
0
,
0
.
0
,
0
.
0
);
for
(
int
x
=
-
radius
;
x
<=
radius
;
++
x
)
{
for
(
int
y
=
-
radius
;
y
<=
radius
;
++
y
)
{
vec2
c
=
qt_TexCoord0
+
vec2
(
x
,
y
)
*
step
;
sum
+=
texture
(
src
,
c
).
rgb
;
}
}
fragColor
=
vec4
(
sum
/
((
radius
*
2
+
1
)
*
(
radius
*
2
+
1
)),
1
.
0
);
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment