Huge rework of editor and other changes.

This commit is contained in:
antopilo
2022-01-09 16:44:20 -05:00
parent 55ae840678
commit a71bfcbe75
55 changed files with 734 additions and 398 deletions

View File

@@ -23,6 +23,8 @@ namespace Nuake
Material::Material(const std::string albedo)
{
InitUniformBuffer();
glGenBuffers(1, &UBO);
glBindBuffer(GL_UNIFORM_BUFFER, UBO);
glBufferData(GL_UNIFORM_BUFFER, sizeof(UBOStructure), NULL, GL_STATIC_DRAW);
@@ -56,6 +58,8 @@ namespace Nuake
Material::Material(const glm::vec3 albedoColor)
{
InitUniformBuffer();
glGenBuffers(1, &UBO);
glBindBuffer(GL_UNIFORM_BUFFER, UBO);
glBufferData(GL_UNIFORM_BUFFER, 128, NULL, GL_STATIC_DRAW);
@@ -142,6 +146,7 @@ namespace Nuake
void Material::SetupUniformBuffer()
{
}
void Material::SetName(const std::string name)