Untitled
Toggle main menu visibility
Loading...
Searching...
No Matches
wireframe.vert
Go to the documentation of this file.
1
2
#version 430 core
3
4
layout
(location = 0) in
vec3
aPosition;
5
layout
(location = 1) in
vec3
aColor;
6
7
layout
(std140, binding = 0) uniform CameraData {
8
vec4
cam_pos;
9
vec4
cam_vel;
10
mat4
projection
;
11
mat4
unjittered_projection;
12
mat4
view
;
13
mat4
inv_projection;
14
mat4
unjittered_inv_projection;
15
mat4
inv_view;
16
};
17
layout
(std140, binding = 1) uniform RenderingData {
18
ivec4
resolution;
19
};
20
layout
(std140, binding = 2) uniform LightCameraData {
21
mat4
light_proj[4];
22
mat4
light_view[4];
23
};
24
layout
(std140, binding = 4) uniform PrevCameraData {
25
vec4
prev_cam_pos;
26
vec4
prev_cam_vel;
27
mat4
prev_projection;
28
mat4
prev_unjittered_projection;
29
mat4
prev_view;
30
mat4
prev_inv_projection;
31
mat4
prev_unjittered_inv_projection;
32
mat4
prev_inv_view;
33
};
34
out
vec3
vNormal
;
35
out
vec3
vColor
;
36
void
main
()
37
{
38
vec3
pos = aPosition;
39
vColor
= aColor;
40
gl_Position = unjittered_projection *
view
*
vec4
(pos, 1.0);
41
}
layout
layout(local_size_x=16, local_size_y=16) in
main
void main()
Definition
audio_probe_bake.comp:465
projection
uniform mat4 projection
Definition
shadow.vert:15
view
uniform mat4 view
Definition
shadow.vert:16
ivec4
Definition
types.h:16
mat4
Definition
types.h:21
vec3
Definition
types.h:12
vec4
Definition
types.h:13
vColor
in vec3 vColor
Definition
wireframe.frag:5
vNormal
out vec3 vNormal
Definition
wireframe.vert:34
src
render
wireframe.vert
Generated by
1.18.0