removed unneeded texture members, added mipmaps

This commit is contained in:
devZoGok
2021-11-20 09:00:41 +02:00
parent a78f6ad32a
commit cbbe6589ea
8 changed files with 54 additions and 46 deletions
+1 -1
View File
@@ -196,7 +196,7 @@ namespace vb01{
void Root::createSkybox(string paths[6]){
skybox = new Box(Vector3(1, 1, 1) * 10);
Material *skyboxMat = new Material(libPath + "skybox");
Texture *texture = new Texture(paths);
Texture *texture = new Texture(paths, 6, true);
skyboxMat->addTexUniform("skybox", texture, true);
skybox->setMaterial(skyboxMat);
}