jak-project/game/graphics/opengl_renderer/shaders/debug_red.vert
water111 083202929c
[graphics] tfrag3 renderer (#978)
* 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
2021-12-04 12:33:18 -05:00

12 lines
368 B
GLSL

// Debug shader for drawing things in red. Uses the same conventions as direct_basic, see there for more details
#version 330 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);
fragment_color = vec4(1.0, 0, 0, 0.7);
}