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
BoxBlur
Commits
a56383ff
Commit
a56383ff
authored
Sep 12, 2022
by
Eskil Abrahamsen-Blomfeldt
Browse files
Fix shader on OpenGL
Varying name has to match.
parent
a8e56382
Changes
1
Hide whitespace changes
Inline
Side-by-side
boxblur.frag
View file @
a56383ff
...
...
@@ -50,7 +50,7 @@
#version 440
layout
(
location
=
0
)
in
vec2
texture
Coord
;
layout
(
location
=
0
)
in
vec2
qt_Tex
Coord
0
;
layout
(
location
=
0
)
out
vec4
fragColor
;
layout
(
std140
,
binding
=
0
)
uniform
buf
{
...
...
@@ -66,7 +66,7 @@ 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
=
texture
Coord
+
vec2
(
x
,
y
)
*
pixelStep
;
vec2
c
=
qt_Tex
Coord
0
+
vec2
(
x
,
y
)
*
pixelStep
;
sum
+=
texture
(
src
,
c
).
rgb
;
}
}
...
...
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