Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Laszlo Agocs
qtrhi
Commits
fbeefcd7
Commit
fbeefcd7
authored
Mar 18, 2019
by
Laszlo Agocs
Browse files
Improve the mrt example shader a bit
parent
e8690b55
Changes
5
Show whitespace changes
Inline
Side-by-side
examples/rhi/mrt/buildshaders.bat
0 → 100755
View file @
fbeefcd7
qsb
--glsl
"100 es,120"
--hlsl
50
--msl
12
-c
mrt
.vert
-o
mrt
.vert.qsb
qsb
--glsl
"100 es,120"
--hlsl
50
--msl
12
-c
mrt
.frag
-o
mrt
.frag.qsb
examples/rhi/mrt/buildshaders.sh
deleted
100755 → 0
View file @
e8690b55
qsb
--glsl
"100 es,120"
--hlsl
50
--msl
12 mrt.vert
-o
mrt.vert.qsb
qsb
--glsl
"100 es,120"
--hlsl
50
--msl
12 mrt.frag
-o
mrt.frag.qsb
examples/rhi/mrt/mrt.frag
View file @
fbeefcd7
...
...
@@ -15,8 +15,8 @@ layout(std140, binding = 0) uniform buf {
void
main
()
{
vec4
c
=
vec4
(
v_color
*
ubuf
.
opacity
,
ubuf
.
opacity
);
c0
=
c
*
0
.
25
;
c1
=
c
*
0
.
5
;
c2
=
c
*
0
.
75
;
c0
=
vec4
(
c
.
r
,
0
,
0
,
c
.
a
)
;
c1
=
vec4
(
0
,
c
.
g
,
0
,
c
.
a
)
;
c2
=
vec4
(
0
,
0
,
c
.
b
,
c
.
a
)
;
c3
=
c
;
}
examples/rhi/mrt/mrt.frag.qsb
View file @
fbeefcd7
No preview for this file type
examples/rhi/mrt/mrt.vert.qsb
View file @
fbeefcd7
No preview for this file type
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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