File: cubemap_mrt.frag

package info (click to toggle)
qtbase-opensource-src-gles 5.15.17%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 349,996 kB
  • sloc: cpp: 2,097,620; ansic: 343,242; xml: 115,491; python: 9,447; java: 7,499; asm: 4,023; sh: 2,086; perl: 2,047; yacc: 1,687; lex: 1,333; javascript: 878; makefile: 260; objc: 70
file content (28 lines) | stat: -rw-r--r-- 600 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#version 440

layout(location = 0) out vec4 c0;
layout(location = 1) out vec4 c1;
layout(location = 2) out vec4 c2;
layout(location = 3) out vec4 c3;
layout(location = 4) out vec4 c4;
layout(location = 5) out vec4 c5;

layout(std140, binding = 0) uniform buf {
    mat4 mvp;
    vec3 color0;
    vec3 color1;
    vec3 color2;
    vec3 color3;
    vec3 color4;
    vec3 color5;
} ubuf;

void main()
{
    c0 = vec4(ubuf.color0, 1.0);
    c1 = vec4(ubuf.color1, 1.0);
    c2 = vec4(ubuf.color2, 1.0);
    c3 = vec4(ubuf.color3, 1.0);
    c4 = vec4(ubuf.color4, 1.0);
    c5 = vec4(ubuf.color5, 1.0);
}