Huge changes for 3d
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user