mirror of
https://github.com/ApfelTeeSaft/vb01.git
synced 2026-08-26 19:33:45 +00:00
updated samples to use the new shader system
some bugfixes
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user