mirror of
https://github.com/devZoGok/vb01.git
synced 2026-09-03 04:23:36 +00:00
E
This commit is contained in:
@@ -17,22 +17,22 @@ int main(){
|
||||
Vector3 v1[]={Vector3(2,2,.5),Vector3(.5,.5,.5)};
|
||||
Vector3 v2[]={Vector3(-.0,0,2),Vector3(.5,0,-2)};
|
||||
for(int i=0;i<1;i++){
|
||||
Model *node=new Model("/home/dominykas/c++/FSim/jet00.obj");
|
||||
//Model *node=new Model("/home/dominykas/c++/FSim/jet00.obj");
|
||||
//node->setObject(q);
|
||||
Material *mat=new Material();
|
||||
mat->addDiffuseMap("/home/dominykas/c++/FSim/woodChips.jpg");
|
||||
mat->setLightingEnabled(false);
|
||||
node->setMaterial(mat);
|
||||
//Material *mat=new Material();
|
||||
//mat->addDiffuseMap("/home/dominykas/c++/FSim/woodChips.jpg");
|
||||
//mat->setLightingEnabled(false);
|
||||
//node->setMaterial(mat);
|
||||
//root->getRootNode()->attachChild(node);
|
||||
}
|
||||
Quad *q=new Quad(v1[0]);
|
||||
Node *n=new Node(v2[0]);
|
||||
Quad *q=new Quad(v1[i]);
|
||||
Node *n=new Node(v2[i]);
|
||||
n->attachMesh(q);
|
||||
Material *mat=new Material();
|
||||
mat->addDiffuseMap("/home/dominykas/c++/FSim/woodChips.jpg");
|
||||
mat->setLightingEnabled(false);
|
||||
q->setMaterial(mat);
|
||||
root->getRootNode()->attachChild(n);
|
||||
}
|
||||
|
||||
Camera *cam=Root::getSingleton()->getCamera();
|
||||
cam->setPosition(Vector3(0,0,-5));
|
||||
|
||||
Reference in New Issue
Block a user