Files
jak-project/game/graphics/opengl_renderer/shaders/ocean_texture.vert
T
ManDude e3051f90ae small shader optimizations (#1402)
* small shader optimizations

* revert camera invert
2022-06-01 18:34:19 -04:00

16 lines
409 B
GLSL

#version 430 core
layout (location = 0) in vec2 position_in;
layout (location = 1) in vec4 rgba_in;
layout (location = 2) in vec2 tex_coord_in;
out vec4 fragment_color;
out vec2 tex_coord;
void main() {
// inputs are 0 - 2048.
gl_Position = vec4((position_in.x - 1024) / 1024, (position_in.y - 1024) / 1024, 0.5, 1.0);
fragment_color = vec4(rgba_in.rgb * 2, 1);
tex_coord = tex_coord_in;
}