projects
/
demo
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Changed the OpenGL part and the GLSL shaders to use UBO and
[demo]
/
vk_shaders
/
sky.v.glsl
1
#version 450
2
3
layout(binding = 0) uniform matrix_state {
4
mat4 mviewproj;
5
} m;
6
7
layout(location = 1) in vec3 attr_pos;
8
layout(location = 2) in vec3 attr_normal;
9
10
layout(location = 0) out vec3 normal;
11
12
void main()
13
{
14
gl_Position = m.mviewproj * vec4(attr_pos, 1.0);
15
normal = attr_normal;
16
}