Files
vb01/material.cpp
T
2021-10-18 19:04:02 +03:00

25 lines
516 B
C++

#include"material.h"
#include"shader.h"
using namespace std;
namespace vb01{
Material::Material(){
string basePath="/home/dominykas/c++/FSim/";
shader=new Shader(basePath+"texture.vert",basePath+"texture.frag");
}
Material::~Material(){}
void Material::update(){
shader->use();
shader->setBool(lightingEnabled,"lightingEnabled");
for(Texture *t : diffuseMapTextures)
t->select();
for(Texture *t : normalMapTextures)
t->select();
for(Texture *t : specularMapTextures)
t->select();
}
}