mirror of
https://github.com/open-goal/jak-project
synced 2026-07-11 15:28:58 -04:00
c8a1643e9f
Add the zoom blur effect, used by cutscene effects and a few weapons: https://github.com/user-attachments/assets/8d231b34-faf8-4b88-a636-edf2b5477ff9 And color filtering https://github.com/user-attachments/assets/67db5933-4b29-4c77-ad56-5025cbefa328 There's still two blit-displays not covered: scanlines and the light jak slow motion effect.
26 lines
594 B
GLSL
26 lines
594 B
GLSL
#version 410 core
|
|
|
|
layout (location = 0) in int index_in;
|
|
layout (location = 1) in vec4 color_in;
|
|
|
|
uniform vec2 tex_coord_0;
|
|
uniform vec2 tex_coord_1;
|
|
|
|
out vec2 tex;
|
|
|
|
void main() {
|
|
if (index_in == 0) {
|
|
gl_Position = vec4(-1, -1, 0, 1.0);
|
|
tex = tex_coord_0;
|
|
} else if (index_in == 1) {
|
|
gl_Position = vec4(-1, 1, 0, 1.0);
|
|
tex = vec2(tex_coord_0.x, tex_coord_1.y);
|
|
} else if (index_in == 2) {
|
|
gl_Position = vec4(1, -1, 0, 1);
|
|
tex = vec2(tex_coord_1.x, tex_coord_0.y);
|
|
} else {
|
|
gl_Position = vec4(1, 1, 0, 1);
|
|
tex = vec2(tex_coord_1.x, tex_coord_1.y);
|
|
}
|
|
}
|