Huge changes for 3d

This commit is contained in:
2026-09-30 18:53:16 -07:00
parent cd2e80cfca
commit b5b0eb9497
53 changed files with 1313 additions and 457 deletions
+3 -5
View File
@@ -25,8 +25,8 @@ ModelRenderSystem::ModelRenderSystem(Device& device,
.setStage(ShaderStage::FRAGMENT)
.build();
auto bindingDescriptions = Mesh::Vertex::getBindingDescriptions();
auto attributeDescriptions = Mesh::Vertex::getAttributeDescriptions();
auto bindingDescriptions = Mesh::getBindingDescriptions();
auto attributeDescriptions = Mesh::getAttributeDescriptions();
this->graphicsPipeline =
GraphicsPipeline::Builder(device)
@@ -44,10 +44,8 @@ ModelRenderSystem::~ModelRenderSystem() {
void ModelRenderSystem::render(vk::CommandBuffer commandBuffer,
std::span<const MeshInstance> instances,
const FrameInfo& frameInfo) {
const glm::mat4& viewProjection) {
ZoneScoped;
glm::mat4 viewProjection = frameInfo.camera.getViewProjection();
this->graphicsPipeline->bind(commandBuffer);
for (const MeshInstance& instance : instances) {