3D Rendering oh yeaaaahhhhh
This commit is contained in:
parent
84020a922b
commit
907afc6577
8 changed files with 119 additions and 23 deletions
|
|
@ -1,8 +1,9 @@
|
|||
#version 450
|
||||
|
||||
layout(location = 0) in vec2 inTextCoords;
|
||||
layout(location = 0) out vec4 outFragColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
outFragColor = vec4(1, 0, 0, 1);
|
||||
outFragColor = vec4(inTextCoords.x, inTextCoords.y, 0, 1);
|
||||
}
|
||||
Binary file not shown.
|
|
@ -1,8 +1,16 @@
|
|||
#version 450
|
||||
|
||||
layout(location = 0) in vec3 inPos;
|
||||
layout(location = 1) in vec2 intTextCoords;
|
||||
layout(location = 0) out vec2 outTextCoords;
|
||||
|
||||
layout(push_constant) uniform matrices{
|
||||
mat4 projectionMatrix;
|
||||
mat4 modelMatrix;
|
||||
} push_constants;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = vec4(inPos,1);
|
||||
gl_Position = push_constants.projectionMatrix * push_constants.modelMatrix * vec4(inPos,1);
|
||||
outTextCoords = intTextCoords;
|
||||
}
|
||||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue