Space Sim
Loading...
Searching...
No Matches
sky.vert
Go to the documentation of this file.
1
2#version 460
3
4layout(location = 0) in vec3 aPosition;
5
6layout(std140) uniform CameraData {
7 vec4 cam_pos;
8 vec4 cam_vel;
10 mat4 view;
11 mat4 inv_projection;
12 mat4 inv_view;
13};
14
17
19void 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}
in vec3 vPos
layout(local_size_x=16, local_size_y=16, local_size_z=1) in
int main(int argc, char *argv[])
Definition main.c:1726
bool s
Definition menu.c:6
uniform mat4 light_proj
Definition mesh.vert:18
uniform mat4 light_view
Definition mesh.vert:17
uniform mat4 projection
Definition shadow.vert:8
uniform mat4 view
Definition shadow.vert:9
Definition types.h:51
Definition main.h:5
Definition types.h:47