17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-30 06:10:28 +01:00

Place the sun and the moon where they are and light the night by the phase of the moon

This commit is contained in:
2026-10-17 22:47:24 +02:00
parent 5a5c67aaaf
commit 435110cef9
10 changed files with 338 additions and 113 deletions

View File

@@ -7,6 +7,8 @@ const vec2 vert[4] = vec2[]
);
out vec2 f_coord;
// the corner of the quad, -1...1 across it
out vec2 f_local;
#include <common>
@@ -14,6 +16,8 @@ void main()
{
gl_Position = projection * (vec4(param[1].xyz, 1.0) + vec4(vert[gl_VertexID] * param[1].w, 0.0, 0.0));
f_local = vert[gl_VertexID];
vec2 coord = param[2].xy;
float size = param[2].z;