Space Sim
Toggle main menu visibility
Loading...
Searching...
No Matches
src
render
sky.vert
Go to the documentation of this file.
1
2
#version 460
3
4
layout
(location = 0) in
vec3
aPosition;
5
6
layout
(std140) uniform CameraData {
7
vec4
cam_pos;
8
vec4
cam_vel;
9
mat4
projection
;
10
mat4
view
;
11
mat4
inv_projection;
12
mat4
inv_view;
13
};
14
15
uniform
mat4
light_view
;
16
uniform
mat4
light_proj
;
17
18
out
vec3
vPos
;
19
void
main
()
20
{
21
22
23
float
c = cos(1.0f);
24
25
float
s
= sin(1.0f);
26
27
mat3 rotation = mat3(
28
vec3
(1, 0, 0),
29
vec3
(0, 0, 1),
30
vec3
(0, -1, 0)
31
);
32
33
vec3
pos = aPosition;
34
vPos
= pos;
35
pos = rotation * pos;
36
vec4
p =
projection
*
view
*
vec4
(pos, 0.0);
37
38
gl_Position = p.xyww;
39
40
}
vPos
in vec3 vPos
Definition
atmosphere.frag:10
layout
layout(local_size_x=16, local_size_y=16, local_size_z=1) in
main
int main(int argc, char *argv[])
Definition
main.c:1726
s
bool s
Definition
menu.c:6
light_proj
uniform mat4 light_proj
Definition
mesh.vert:18
light_view
uniform mat4 light_view
Definition
mesh.vert:17
projection
uniform mat4 projection
Definition
shadow.vert:8
view
uniform mat4 view
Definition
shadow.vert:9
mat4
Definition
types.h:51
vec3
Definition
main.h:5
vec4
Definition
types.h:47
Generated by
1.18.0