updated samples to use the new shader system

some bugfixes
This commit is contained in:
devZoGok
2021-11-10 20:23:15 +02:00
parent ec8dd7ac1e
commit 3cce34310f
12 changed files with 40 additions and 20 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ int main(){
mat->addVariable("texturingEnabled", true);
string images[] = {TEX_PATH + "defaultTexture.jpg"};
Texture *texture = new Texture(images, 1);
mat->addVariable("textures[0]", texture);
mat->addVariable("textures[0]", texture, true);
model->setMaterial(mat);
rootNode->attachChild(model);