rework examples according to new changes
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user