diff options
author | David Walter Seikel | 2013-01-20 05:38:59 +1000 |
---|---|---|
committer | David Walter Seikel | 2013-01-20 05:38:59 +1000 |
commit | db25b999f5af3115f64cdd20e0b96d44bf2bf3c2 (patch) | |
tree | 6ed1ffcb5233c7c24e1ae8ab8a3e85ff44d99c48 /ClientHamr | |
parent | Give Irrlicht a bit more credit. (diff) | |
download | SledjHamr-db25b999f5af3115f64cdd20e0b96d44bf2bf3c2.zip SledjHamr-db25b999f5af3115f64cdd20e0b96d44bf2bf3c2.tar.gz SledjHamr-db25b999f5af3115f64cdd20e0b96d44bf2bf3c2.tar.bz2 SledjHamr-db25b999f5af3115f64cdd20e0b96d44bf2bf3c2.tar.xz |
Swap the materials for the two Sydneys.
Diffstat (limited to 'ClientHamr')
-rw-r--r-- | ClientHamr/extantz/CDemo.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ClientHamr/extantz/CDemo.cpp b/ClientHamr/extantz/CDemo.cpp index 7f44a9c..c80ebe2 100644 --- a/ClientHamr/extantz/CDemo.cpp +++ b/ClientHamr/extantz/CDemo.cpp | |||
@@ -302,25 +302,25 @@ void CDemo::loadSceneData() | |||
302 | model1 = sm->addAnimatedMeshSceneNode(mesh); | 302 | model1 = sm->addAnimatedMeshSceneNode(mesh); |
303 | if (model1) | 303 | if (model1) |
304 | { | 304 | { |
305 | model1->setMaterialTexture(0, driver->getTexture("media/spheremap.jpg")); | 305 | model1->setMaterialTexture(0, driver->getTexture("media/sydney.bmp")); |
306 | model1->setPosition(core::vector3df(100,40,-80)); | 306 | model1->setPosition(core::vector3df(100,40,-80)); |
307 | model1->setScale(core::vector3df(2,2,2)); | 307 | model1->setScale(core::vector3df(2,2,2)); |
308 | model1->setMD2Animation(scene::EMAT_STAND); | 308 | model1->setMD2Animation(scene::EMAT_STAND); |
309 | model1->setMaterialFlag(video::EMF_LIGHTING, false); | 309 | model1->setMaterialFlag(video::EMF_LIGHTING, true); |
310 | model1->setMaterialFlag(video::EMF_NORMALIZE_NORMALS, true); | 310 | model1->setMaterialFlag(video::EMF_NORMALIZE_NORMALS, true); |
311 | model1->setMaterialType(video::EMT_SPHERE_MAP); | ||
312 | model1->addShadowVolumeSceneNode(); | 311 | model1->addShadowVolumeSceneNode(); |
313 | } | 312 | } |
314 | 313 | ||
315 | model2 = sm->addAnimatedMeshSceneNode(mesh); | 314 | model2 = sm->addAnimatedMeshSceneNode(mesh); |
316 | if (model2) | 315 | if (model2) |
317 | { | 316 | { |
317 | model2->setMaterialTexture(0, driver->getTexture("media/spheremap.jpg")); | ||
318 | model2->setPosition(core::vector3df(180,15,-60)); | 318 | model2->setPosition(core::vector3df(180,15,-60)); |
319 | model2->setScale(core::vector3df(2,2,2)); | 319 | model2->setScale(core::vector3df(2,2,2)); |
320 | model2->setMD2Animation(scene::EMAT_RUN); | 320 | model2->setMD2Animation(scene::EMAT_RUN); |
321 | model2->setMaterialTexture(0, device->getVideoDriver()->getTexture("media/sydney.bmp")); | 321 | model2->setMaterialFlag(video::EMF_LIGHTING, false); |
322 | model2->setMaterialFlag(video::EMF_LIGHTING, true); | ||
323 | model2->setMaterialFlag(video::EMF_NORMALIZE_NORMALS, true); | 322 | model2->setMaterialFlag(video::EMF_NORMALIZE_NORMALS, true); |
323 | model2->setMaterialType(video::EMT_SPHERE_MAP); | ||
324 | model2->addShadowVolumeSceneNode(); | 324 | model2->addShadowVolumeSceneNode(); |
325 | } | 325 | } |
326 | } | 326 | } |