mirror of
https://github.com/open-goal/jak-project
synced 2026-07-05 05:40:00 -04:00
e3051f90ae
* small shader optimizations * revert camera invert
16 lines
409 B
GLSL
16 lines
409 B
GLSL
#version 430 core
|
|
|
|
layout (location = 0) in vec2 position_in;
|
|
layout (location = 1) in vec4 rgba_in;
|
|
layout (location = 2) in vec2 tex_coord_in;
|
|
|
|
out vec4 fragment_color;
|
|
out vec2 tex_coord;
|
|
|
|
void main() {
|
|
// inputs are 0 - 2048.
|
|
gl_Position = vec4((position_in.x - 1024) / 1024, (position_in.y - 1024) / 1024, 0.5, 1.0);
|
|
fragment_color = vec4(rgba_in.rgb * 2, 1);
|
|
tex_coord = tex_coord_in;
|
|
}
|