added texture swapping
This commit is contained in:
@@ -94,7 +94,10 @@ void Ari::onInit()
|
||||
Vector3 testpos = Vector3(0.0F, 10.0F, 0.0F);
|
||||
test->loadObj("objanim/", "untitled", testpos, 10.0F, 2);
|
||||
texRepo->addByMesh("objanim/", *test);
|
||||
// MeshTexture **textures = texRepo->getAll();
|
||||
MeshTexture **textures = texRepo->getAll();
|
||||
textures[0]->removeLink(test->id, test->getMaterial(0).getId());
|
||||
MeshTexture *tex = texRepo->add("objanim/", "water");
|
||||
tex->addLink(test->id, test->getMaterial(0).getId());
|
||||
test->playAnimation(0, 1);
|
||||
test->shouldBeBackfaceCulled = true;
|
||||
// test->shouldBeFrustumCulled = true;
|
||||
|
||||
Reference in New Issue
Block a user