shader path is determined by client

This commit is contained in:
devZoGok
2021-10-19 19:06:41 +03:00
parent 8c8edc2159
commit 10345c8ef8
4 changed files with 9 additions and 6 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ namespace vb01{
}
void Material::initShader(){
string basePath = "../../vb01/", shaderName;
string basePath = Root::getSingleton()->getLibPath(), shaderName;
switch(type){
case MATERIAL_2D:
shaderName = "texture.";