2020-09-26 03:51:39 +00:00
|
|
|
|
2020-09-28 16:28:16 +00:00
|
|
|
out vec4 sk_FragColor;
|
|
|
|
void main() {
|
|
|
|
vec3 h3;
|
|
|
|
{
|
|
|
|
h3 = vec3(3.0);
|
|
|
|
}
|
2020-09-23 19:20:01 +00:00
|
|
|
|
2020-09-28 16:28:16 +00:00
|
|
|
vec4 h4;
|
|
|
|
{
|
|
|
|
h4 = vec4(4.0);
|
|
|
|
}
|
|
|
|
|
2020-09-29 20:57:55 +00:00
|
|
|
{
|
|
|
|
h3.xz = vec2(2.0);
|
|
|
|
}
|
2020-09-28 16:28:16 +00:00
|
|
|
|
2020-09-29 20:57:55 +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);
|
|
|
|
mat3 h3x3;
|
|
|
|
{
|
|
|
|
h3x3 = mat3(3.0);
|
|
|
|
}
|
|
|
|
|
|
|
|
mat4 h4x4;
|
|
|
|
{
|
|
|
|
h4x4 = mat4(4.0);
|
|
|
|
}
|
|
|
|
|
2020-09-29 20:57:55 +00:00
|
|
|
{
|
|
|
|
h3x3[1] = vec3(3.0);
|
|
|
|
}
|
2020-09-28 16:28:16 +00:00
|
|
|
|
2020-09-29 21:42:23 +00:00
|
|
|
{
|
|
|
|
h4x4[3].w = 1.0;
|
|
|
|
}
|
2020-09-28 16:28:16 +00:00
|
|
|
|
|
|
|
sk_FragColor = vec4(mat2(2.0)[0][0], h3x3[0][0], h4x4[0][0], 1.0);
|
|
|
|
ivec4 i4;
|
|
|
|
{
|
|
|
|
i4 = ivec4(4);
|
|
|
|
}
|
|
|
|
|
2020-09-29 20:57:55 +00:00
|
|
|
{
|
|
|
|
i4.xyz = ivec3(3);
|
|
|
|
}
|
2020-09-28 16:28:16 +00:00
|
|
|
|
|
|
|
sk_FragColor = vec4(1.0, 2.0, 3.0, float(i4.x));
|
|
|
|
vec3 f3;
|
|
|
|
{
|
|
|
|
f3 = vec3(3.0);
|
|
|
|
}
|
|
|
|
|
2020-09-29 20:57:55 +00:00
|
|
|
{
|
|
|
|
f3.xy = vec2(2.0);
|
|
|
|
}
|
2020-09-28 16:28:16 +00:00
|
|
|
|
|
|
|
sk_FragColor = vec4(1.0, 2.0, f3.x, 4.0);
|
|
|
|
mat2 f2x2;
|
|
|
|
{
|
|
|
|
f2x2 = mat2(2.0);
|
|
|
|
}
|
|
|
|
|
2020-09-29 21:42:23 +00:00
|
|
|
{
|
|
|
|
f2x2[0][0] = 1.0;
|
|
|
|
}
|
2020-09-28 16:28:16 +00:00
|
|
|
|
|
|
|
sk_FragColor = vec4(f2x2[0][0], mat3(3.0)[0][0], mat4(4.0)[0][0], 1.0);
|
|
|
|
bvec4 b4;
|
|
|
|
{
|
|
|
|
b4 = bvec4(false);
|
|
|
|
}
|
|
|
|
|
2020-09-29 20:57:55 +00:00
|
|
|
{
|
|
|
|
b4.xw = bvec2(false);
|
|
|
|
}
|
2020-09-28 16:28:16 +00:00
|
|
|
|
2020-11-18 16:10:38 +00:00
|
|
|
sk_FragColor = vec4(1.0, false ? 1.0 : 0.0, true ? 1.0 : 0.0, b4.x ? 1.0 : 0.0);
|
2020-09-28 16:28:16 +00:00
|
|
|
}
|