Commit fbeefcd7 authored by Laszlo Agocs's avatar Laszlo Agocs
Browse files

Improve the mrt example shader a bit

parent e8690b55
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
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
...@@ -15,8 +15,8 @@ layout(std140, binding = 0) uniform buf { ...@@ -15,8 +15,8 @@ layout(std140, binding = 0) uniform buf {
void main() void main()
{ {
vec4 c = vec4(v_color * ubuf.opacity, ubuf.opacity); vec4 c = vec4(v_color * ubuf.opacity, ubuf.opacity);
c0 = c * 0.25; c0 = vec4(c.r, 0, 0, c.a);
c1 = c * 0.5; c1 = vec4(0, c.g, 0, c.a);
c2 = c * 0.75; c2 = vec4(0, 0, c.b, c.a);
c3 = c; c3 = c;
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment