This repository has been archived on 2022-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
LEFTONE/core/loshader/fog.vshader

16 lines
265 B
Plaintext
Raw Normal View History

out vec2 v_uv;
const vec2[6] square_ = vec2[](
vec2(-1., 1.),
vec2(-1., -1.),
vec2( 1., -1.),
vec2(-1., 1.),
vec2( 1., -1.),
vec2( 1., 1.)
);
void main(void) {
v_uv = square_[gl_VertexID];
gl_Position = vec4(v_uv, 0., 1.);
}