Start 3D. DescriptionPool, DescriptionSets and more other

This commit is contained in:
Jiga228
2025-10-22 22:03:34 +07:00
parent 7990b1352c
commit 4bec5afd72
5 changed files with 166 additions and 12 deletions
+7 -1
View File
@@ -1,5 +1,11 @@
#version 450
layout(binding = 0) uniform UniformBufferObject {
mat4 model;
mat4 view;
mat4 proj;
} ubo;
layout(location = 0) in vec2 inPosition;
layout(location = 1) in vec3 inColor;
@@ -7,6 +13,6 @@ layout(location = 0) out vec3 fragColor;
void main()
{
gl_Position = vec4(inPosition, 0.0, 1.0);
gl_Position = ubo.proj * ubo.view * ubo.model * vec4(inPosition, 0.0, 1.0);
fragColor = inColor;
}