Files
jak-project/game/graphics/opengl_renderer/shaders/post_processing.vert
T
ManDude 20ab48796d split game framebuffers to allow custom resolutions/shaders (#1641)
* split rendering framebuffer

* fix blackout

* unhardcode c++ stuff

* optimization

* implement goal side of all this

* fix msaa

* sprite distort fixes

* fix resolution menu options

* save & load msaa

* linear filtering on the game screen

* fix bad texture units

* fun!

* unused

* make screenshot button capture the framebuffer and not the window buffer

* panik

* screenshot settings

* fix black screen on first frame of new framebuffer

* default fullscreen resolution to the screen size

* hide funny resolutions in windowed since it makes no sense
2022-07-14 21:37:03 -04:00

11 lines
182 B
GLSL

#version 430 core
layout (location = 0) in vec2 position_in;
out vec2 screen_pos;
void main() {
gl_Position = vec4(position_in, 0, 1.0);
screen_pos = (position_in + 1) / 2;
}