jak-project/game/graphics/opengl_renderer/shaders/ocean_texture_mipmap.vert
water111 ef0f7635d3
[graphics] Ocean Mid (in progress) (#1232)
* first pass at ocean mid

* fix some bugs

* fix seams

* cleanup

* temp

* fix mipmap
2022-03-14 19:47:29 -04:00

12 lines
302 B
GLSL

#version 430 core
layout (location = 0) in vec2 position_in;
layout (location = 1) in vec2 tex_coord_in;
out vec2 tex_coord;
uniform float scale;
void main() {
gl_Position = vec4(position_in.x * scale - (1 - scale), position_in.y * scale - (1 - scale), 0.5, 1.0);
tex_coord = tex_coord_in;
}