Implement dynamic atmosphere
https://github.com/Fewes/MinimalAtmosphere
This commit is contained in:
parent
9905ffd26b
commit
7038343b19
9 changed files with 373 additions and 29 deletions
13
assets/shaders/sky_atmosphere.vert
Normal file
13
assets/shaders/sky_atmosphere.vert
Normal 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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue