moved texture GPU data loading to Root

reordered node and mesh rendering data generation
materials no longer create their own shaders
This commit is contained in:
devZoGok
2026-06-27 10:21:40 +03:00
parent cc59f9160c
commit 4578f0c6ad
10 changed files with 278 additions and 149 deletions
+1 -4
View File
@@ -1,14 +1,11 @@
#include "material.h"
#include "shader.h"
#include "root.h"
using namespace std;
using namespace glm;
namespace vb01{
Material::Material(string shaderName, bool geometryShader){
shader = new Shader(shaderName);
}
Material::Material(Shader *sh) : shader(sh){}
Material::~Material(){
delete shader;