feat(assets): add cube vertex and fragment shaders
This commit is contained in:
parent
1c3eb69cbf
commit
5887b2a2a8
9
assets/shaders/cube.frag
Normal file
9
assets/shaders/cube.frag
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#version 450
|
||||
|
||||
layout(location = 0) in vec2 in_tex_coord;
|
||||
|
||||
layout(location = 0) out vec4 out_color;
|
||||
|
||||
void main () {
|
||||
out_color = vec4(in_tex_coord, 1.0, 1.0);
|
||||
}
|
||||
3
assets/shaders/cube.frag.spv
Normal file
3
assets/shaders/cube.frag.spv
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3874fa1c7782cba103fa7df1505c900506ab27a19a00f6e15c073c6a96b0f34c
|
||||
size 556
|
||||
17
assets/shaders/cube.vert
Normal file
17
assets/shaders/cube.vert
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
|
||||
#version 450
|
||||
|
||||
layout(location = 0) in vec3 in_position;
|
||||
layout(location = 1) in vec2 in_tex_coord;
|
||||
|
||||
layout(location = 0) out vec2 out_tex_coord;
|
||||
|
||||
layout(push_constant) uniform PushConstants {
|
||||
mat4 mvp;
|
||||
} push_constants;
|
||||
|
||||
void main() {
|
||||
gl_Position = push_constants.mvp * vec4(in_position, 1.0);
|
||||
|
||||
out_tex_coord = in_tex_coord;
|
||||
}
|
||||
3
assets/shaders/cube.vert.spv
Normal file
3
assets/shaders/cube.vert.spv
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:dcac088d9ed53209a22008ab3ad49d88dbb8e8f6b4b2a17fef5a8368856019ea
|
||||
size 1360
|
||||
Loading…
Reference in a new issue