2020-02-25 21:02:40 +03:00
|
|
|
#version 140
|
2019-01-23 01:34:11 +03:00
|
|
|
|
2019-05-13 04:05:14 +03:00
|
|
|
// (x offset, y offset, zoom)
|
|
|
|
uniform vec3 transform;
|
2019-09-11 21:06:57 +03:00
|
|
|
// (window width, window height, _)
|
2019-05-13 04:05:14 +03:00
|
|
|
uniform vec3 window;
|
|
|
|
|
2019-09-11 02:08:01 +03:00
|
|
|
in vec4 pass_style;
|
2019-01-23 01:34:11 +03:00
|
|
|
out vec4 f_color;
|
|
|
|
|
|
|
|
void main() {
|
2020-06-24 18:36:47 +03:00
|
|
|
// https://en.wikipedia.org/wiki/Grayscale#Luma_coding_in_video_systems
|
|
|
|
//float gray = dot(pass_style.rgb, vec3(0.299, 0.587, 0.114));
|
|
|
|
//f_color = vec4(vec3(gray), pass_style.a);
|
|
|
|
|
|
|
|
f_color = pass_style;
|
2019-01-23 01:34:11 +03:00
|
|
|
}
|