Working on complex models and texture loading
This commit is contained in:
parent
6d6d9f42be
commit
c2aa4ec895
27 changed files with 780 additions and 59 deletions
|
|
@ -4,13 +4,17 @@ 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;
|
||||
|
||||
layout(set = 0, binding = 0) uniform ProjUniform{
|
||||
mat4 matrix;
|
||||
} projUniform;
|
||||
|
||||
layout(push_constant) uniform pc{
|
||||
mat4 modelMatrix;
|
||||
} push_constants;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = push_constants.projectionMatrix * push_constants.modelMatrix * vec4(inPos,1);
|
||||
gl_Position = projUniform.matrix * push_constants.modelMatrix * vec4(inPos,1);
|
||||
outTextCoords = intTextCoords;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue