92 float point = (-lightDir.y + 1.0f) / 2.0f;
104 mLight0->setPosition(sunPos*0.02);
105 mLight1->setDirection(lightDir);
117 mLight1->setDiffuseColour(ambientCol.x, ambientCol.y, ambientCol.z);
118 mLight1->setPosition(100,100,100);
178 mLight0->setDiffuseColour(1, 1, 1);
179 mLight0->setCastShadows(
false);
182 mLight1->setType(Ogre::Light::LT_DIRECTIONAL);
System integration layer; inspired by OgreBites::ApplicationContext.
Game state manager and message-queue provider.
Ogre::Root * GetOgreRoot()
Ogre::RenderWindow * GetRenderWindow()
const TerrainPtr & GetTerrain()