mirror of
https://github.com/open-goal/jak-project
synced 2026-08-19 06:02:15 -04:00
083202929c
* begin work * work * working objs * exporting * it works * before some time of day fixes * add time of day interp and also fix zbuffer * some small blending fixes * improve randomess * clean up extraction and missing blend mode * culling, time of day, more level fixes * more cleanup * cleanup memory usage * windows fix
17 lines
581 B
GLSL
17 lines
581 B
GLSL
// Shader for debugging the buffered renderer.
|
|
// no texture
|
|
|
|
#version 330 core
|
|
|
|
layout (location = 0) in vec3 position_in;
|
|
layout (location = 1) in vec4 rgba_in;
|
|
layout (location = 2) in vec3 stq_in;
|
|
|
|
out vec4 fragment_color;
|
|
|
|
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);
|
|
fragment_color = vec4(rgba_in.x, rgba_in.y, rgba_in.z, rgba_in.w + 0.5);
|
|
//fragment_color = vec4(1.0, 0, 0, 0.7);
|
|
} |