rework examples according to new changes

This commit is contained in:
ohyzha
2024-07-24 10:50:33 +03:00
parent c29f90fc28
commit 10d6240555
4 changed files with 15 additions and 16 deletions

View File

@@ -49,9 +49,9 @@ namespace OpenVulkano
shader.AddShaderProgram(OpenVulkano::ShaderProgramType::FRAGMENT, "Shader/basicTexture");
shader.AddVertexInputDescription(OpenVulkano::Vertex::GetVertexInputDescription());
shader.AddDescriptorSetLayoutBinding(Texture::DESCRIPTOR_SET_LAYOUT_BINDING);
Geometry* geo = GeometryFactory::MakeCube();
static Geometry geo = GeometryFactory::MakeCube();
mat.texture = &Texture::PLACEHOLDER;
drawable.Init(&shader, geo, &mat);
drawable.Init(&shader, &geo, &mat);
node.Init();
scene.GetRoot()->AddChild(&node);
node.SetUpdateFrequency(UpdateFrequency::Always);