2020-09-26 03:51:39 +00:00
|
|
|
|
2020-09-28 16:28:16 +00:00
|
|
|
out vec4 sk_FragColor;
|
|
|
|
void main() {
|
|
|
|
vec3 h3;
|
2020-12-15 20:21:03 +00:00
|
|
|
h3 = vec3(3.0);
|
|
|
|
|
2020-09-28 16:28:16 +00:00
|
|
|
vec4 h4;
|
2020-12-15 20:21:03 +00:00
|
|
|
h4 = vec4(4.0);
|
|
|
|
|
|
|
|
h3.y = 1.0;
|
|
|
|
|
|
|
|
h3.xz = vec2(2.0);
|
2020-12-04 20:36:49 +00:00
|
|
|
|
2020-12-15 20:21:03 +00:00
|
|
|
h4.zwxy = vec4(4.0);
|
|
|
|
|
2020-09-28 16:28:16 +00:00
|
|
|
sk_FragColor = vec4(1.0, 2.0, h3.x, h4.x);
|
2020-12-04 20:36:49 +00:00
|
|
|
mat2 h2x2;
|
2020-12-15 20:21:03 +00:00
|
|
|
h2x2 = mat2(2.0);
|
|
|
|
|
2020-09-28 16:28:16 +00:00
|
|
|
mat3 h3x3;
|
2020-12-15 20:21:03 +00:00
|
|
|
h3x3 = mat3(3.0);
|
|
|
|
|
2020-09-28 16:28:16 +00:00
|
|
|
mat4 h4x4;
|
2020-12-15 20:21:03 +00:00
|
|
|
h4x4 = mat4(4.0);
|
2020-09-28 16:28:16 +00:00
|
|
|
|
2020-12-15 20:21:03 +00:00
|
|
|
h3x3[1] = vec3(3.0);
|
|
|
|
|
|
|
|
h4x4[3].w = 1.0;
|
|
|
|
|
|
|
|
h2x2[0].x = 1.0;
|
2020-09-28 16:28:16 +00:00
|
|
|
|
2020-12-07 20:25:31 +00:00
|
|
|
sk_FragColor = vec4(h2x2[0].x, h3x3[0].x, h4x4[0].x, 1.0);
|
2020-12-04 20:36:49 +00:00
|
|
|
ivec2 i2;
|
2020-12-15 20:21:03 +00:00
|
|
|
i2 = ivec2(2);
|
|
|
|
|
2020-09-28 16:28:16 +00:00
|
|
|
ivec4 i4;
|
2020-12-15 20:21:03 +00:00
|
|
|
i4 = ivec4(4);
|
|
|
|
|
|
|
|
i4.xyz = ivec3(3);
|
|
|
|
|
|
|
|
i2.y = 1;
|
2020-09-28 16:28:16 +00:00
|
|
|
|
2020-12-04 20:36:49 +00:00
|
|
|
sk_FragColor = vec4(1.0, float(i2.x), 3.0, float(i4.x));
|
|
|
|
vec2 f2;
|
2020-12-15 20:21:03 +00:00
|
|
|
f2 = vec2(2.0);
|
|
|
|
|
2020-09-28 16:28:16 +00:00
|
|
|
vec3 f3;
|
2020-12-15 20:21:03 +00:00
|
|
|
f3 = vec3(3.0);
|
|
|
|
|
|
|
|
f3.xy = vec2(2.0);
|
|
|
|
|
|
|
|
f2.x = 1.0;
|
2020-09-28 16:28:16 +00:00
|
|
|
|
2020-12-04 20:36:49 +00:00
|
|
|
sk_FragColor = vec4(1.0, f2.x, f3.x, 4.0);
|
2020-09-28 16:28:16 +00:00
|
|
|
mat2 f2x2;
|
2020-12-15 20:21:03 +00:00
|
|
|
f2x2 = mat2(2.0);
|
|
|
|
|
|
|
|
f2x2[0].x = 1.0;
|
2020-09-28 16:28:16 +00:00
|
|
|
|
2020-12-07 20:25:31 +00:00
|
|
|
sk_FragColor = vec4(f2x2[0].x, mat3(3.0)[0].x, mat4(4.0)[0].x, 1.0);
|
2020-12-04 20:36:49 +00:00
|
|
|
bvec3 b3;
|
2020-12-15 20:21:03 +00:00
|
|
|
b3 = bvec3(true);
|
|
|
|
|
2020-09-28 16:28:16 +00:00
|
|
|
bvec4 b4;
|
2020-12-15 20:21:03 +00:00
|
|
|
b4 = bvec4(false);
|
|
|
|
|
|
|
|
b4.xw = bvec2(false);
|
|
|
|
|
|
|
|
b3.z = true;
|
2020-09-28 16:28:16 +00:00
|
|
|
|
2021-01-05 23:47:09 +00:00
|
|
|
sk_FragColor = vec4(1.0, 0.0, float(b3.x), float(b4.x));
|
2020-09-28 16:28:16 +00:00
|
|
|
}
|