aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/extantz
diff options
context:
space:
mode:
authorDavid Walter Seikel2013-01-20 03:42:49 +1000
committerDavid Walter Seikel2013-01-20 03:42:49 +1000
commite3a3ba0bcd87063b82cd1dc64a43c60cce6d4f0a (patch)
tree497a6d160ee2aa044edf65bf9503f3078c8c44fa /ClientHamr/extantz
parentMove the Irrlicht namespace stuff into the extantz header. (diff)
downloadSledjHamr-e3a3ba0bcd87063b82cd1dc64a43c60cce6d4f0a.zip
SledjHamr-e3a3ba0bcd87063b82cd1dc64a43c60cce6d4f0a.tar.gz
SledjHamr-e3a3ba0bcd87063b82cd1dc64a43c60cce6d4f0a.tar.bz2
SledjHamr-e3a3ba0bcd87063b82cd1dc64a43c60cce6d4f0a.tar.xz
Use ambient light instead of material light.
Diffstat (limited to 'ClientHamr/extantz')
-rw-r--r--ClientHamr/extantz/crappisspuke.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/ClientHamr/extantz/crappisspuke.cpp b/ClientHamr/extantz/crappisspuke.cpp
index b853d96..41bd95d 100644
--- a/ClientHamr/extantz/crappisspuke.cpp
+++ b/ClientHamr/extantz/crappisspuke.cpp
@@ -107,6 +107,8 @@ EAPI int startIrr(GLData *gld)
107 driver = device->getVideoDriver(); gld->driver = driver; 107 driver = device->getVideoDriver(); gld->driver = driver;
108 smgr = device->getSceneManager(); gld->smgr = smgr; 108 smgr = device->getSceneManager(); gld->smgr = smgr;
109 109
110 // set ambient light
111 smgr->setAmbientLight (video::SColorf(0x00c0c0c0));
110 /* 112 /*
111 To show something interesting, we load a Quake 2 model and display it. 113 To show something interesting, we load a Quake 2 model and display it.
112 We only have to get the Mesh from the Scene Manager with getMesh() and add 114 We only have to get the Mesh from the Scene Manager with getMesh() and add
@@ -137,7 +139,7 @@ EAPI int startIrr(GLData *gld)
137 */ 139 */
138 if (node) 140 if (node)
139 { 141 {
140 node->setMaterialFlag(EMF_LIGHTING, false); 142// node->setMaterialFlag(EMF_LIGHTING, false);
141 node->setMD2Animation(scene::EMAT_STAND); 143 node->setMD2Animation(scene::EMAT_STAND);
142 node->setMaterialTexture(0, driver->getTexture("media/sydney.bmp")); 144 node->setMaterialTexture(0, driver->getTexture("media/sydney.bmp"));
143 } 145 }