mostly implemented skybox and fixed box verts

This commit is contained in:
devZoGok
2021-10-18 19:04:20 +03:00
parent fd09cbf762
commit 03f65e62f5
22 changed files with 227 additions and 106 deletions
+13 -3
View File
@@ -4,9 +4,19 @@
using namespace std;
namespace vb01{
Material::Material(){
string basePath="/home/dominykas/c++/FSim/";
shader=new Shader(basePath+"texture.vert",basePath+"texture.frag");
Material::Material(Type type){
this->type=type;
string basePath="/home/dominykas/c++/FSim/",shaderName;
switch(type){
case MATERIAL_2D:
shaderName="texture.";
break;
case MATERIAL_SKYBOX:
shaderName="skybox.";
break;
}
shader=new Shader(basePath+shaderName+"vert",basePath+shaderName+"frag");
}
Material::~Material(){}