2021-11-16 15:15:36 +00:00
|
|
|
#version 310 es
|
|
|
|
precision mediump float;
|
|
|
|
|
2022-09-13 19:48:51 +00:00
|
|
|
layout(binding = 0, std140) uniform S_std140_ubo {
|
2022-09-01 22:12:19 +00:00
|
|
|
vec2 matrix_0;
|
|
|
|
vec2 matrix_1;
|
|
|
|
vec2 matrix_2;
|
2022-09-13 19:48:51 +00:00
|
|
|
uint pad;
|
|
|
|
uint pad_1;
|
2021-11-16 15:15:36 +00:00
|
|
|
vec3 vector;
|
2022-09-13 19:48:51 +00:00
|
|
|
uint pad_2;
|
2021-11-16 15:15:36 +00:00
|
|
|
} data;
|
|
|
|
|
2022-09-01 22:12:19 +00:00
|
|
|
mat3x2 load_data_matrix() {
|
|
|
|
return mat3x2(data.matrix_0, data.matrix_1, data.matrix_2);
|
|
|
|
}
|
|
|
|
|
2021-11-16 15:15:36 +00:00
|
|
|
void tint_symbol() {
|
2022-09-01 22:12:19 +00:00
|
|
|
vec2 x = (load_data_matrix() * data.vector);
|
2021-11-16 15:15:36 +00:00
|
|
|
}
|
2022-01-26 16:48:55 +00:00
|
|
|
|
2021-11-16 15:15:36 +00:00
|
|
|
void main() {
|
|
|
|
tint_symbol();
|
2022-01-28 22:36:58 +00:00
|
|
|
return;
|
2021-11-16 15:15:36 +00:00
|
|
|
}
|