Changeset 71
- Timestamp:
- Oct 17, 2007, 3:12:16 PM (17 years ago)
- Location:
- code/branches/tutorial/Tutorial/src
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/tutorial/Tutorial/src/main.cpp
r60 r71 50 50 mSceneMgr->setAmbientLight( ColourValue( 0.3, 0.3, 0.3 ) ); 51 51 Entity* head = mSceneMgr->createEntity("head", "ogrehead.mesh"); 52 53 Entity* head2 = mSceneMgr->createEntity("head2", "ogrehead.mesh"); 54 52 55 SceneNode *node = mSceneMgr->getRootSceneNode()->createChildSceneNode( "OgreHeadNode", Vector3( 0, 0, 0 ) ); 53 56 node->attachObject( head ); 57 58 SceneNode *node2 = mSceneMgr->getRootSceneNode()->createChildSceneNode( "OgreHeadNode2", Vector3( 50, 0, 0 ) ); 59 node2->attachObject( head2 ); 60 54 61 55 62 mSceneMgr->setSkyBox(true, "Examples/SpaceSkyBox"); … … 58 65 light->setType(Light::LT_POINT); 59 66 light->setPosition(Vector3(0, 100, 0)); 60 light->setDiffuseColour( 1.0, 0.0, 0.0);61 light->setSpecularColour( 1.0, 0.0, 0.0);67 light->setDiffuseColour(0.5, 0.5, 0.0); 68 light->setSpecularColour(0.5, 0.5, 0.0); 62 69 63 70 BillboardSet *bbs = mSceneMgr->createBillboardSet("bb", 1);
Note: See TracChangeset
for help on using the changeset viewer.