mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-21 17:47:44 -04:00
8d9b0b493b
* shadow volumes drawing * fix bugs in clipping case * add shadow * fix Q register bugs * fix bugs
11 lines
359 B
GLSL
11 lines
359 B
GLSL
#version 430 core
|
|
|
|
layout (location = 0) in vec3 position_in;
|
|
|
|
void main() {
|
|
// Note: position.y is multiplied by 32 instead of 16 to undo the half-height for interlacing stuff.
|
|
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;
|
|
}
|