Implement dynamic atmosphere

https://github.com/Fewes/MinimalAtmosphere
This commit is contained in:
reo 2025-09-18 23:23:53 +03:00
parent 9905ffd26b
commit 7038343b19
9 changed files with 373 additions and 29 deletions

View file

@ -0,0 +1,13 @@
#version 330 core
// Fullscreen triangle (no vbo)
out vec2 v_uv;
void main() {
// gl_VertexID in {0,1,2}
vec2 pos = vec2((gl_VertexID << 1) & 2, gl_VertexID & 2);
v_uv = pos;
gl_Position = vec4(pos * 2.0 - 1.0, 0.0, 1.0);
}