mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-21 17:47:44 -04:00
701108a1b6
* update progress code and fix our frame "scissoring" * aspect ratio hacks * expand progress tint for widescreen * give up and comment things properly * properly undo hacks
15 lines
429 B
GLSL
15 lines
429 B
GLSL
// Debug shader for drawing things in red. Uses the same conventions as direct_basic, see there for more details
|
|
|
|
#version 430 core
|
|
|
|
layout (location = 0) in vec3 position_in;
|
|
|
|
out vec4 fragment_color;
|
|
|
|
void main() {
|
|
gl_Position = vec4((position_in.x - 0.5) * 16., -(position_in.y - 0.5) * 32, position_in.z * 2 - 1., 1.0);
|
|
// scissoring area adjust
|
|
gl_Position.y *= 512.0/448.0;
|
|
fragment_color = vec4(1.0, 0, 0, 0.7);
|
|
}
|