mirror of
https://github.com/devZoGok/vb01.git
synced 2026-09-02 12:33:50 +00:00
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:
+1
-4
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user