Added sound culling (experimental), and various fixes

git-svn-id: https://openmw.svn.sourceforge.net/svnroot/openmw/trunk@27 ea6a568a-9f4f-0410-981a-c910a81bb256
This commit is contained in:
nkorslund 2008-07-16 21:33:08 +00:00
parent e56c51b03e
commit 1e41012ff3
12 changed files with 119 additions and 84 deletions

View file

@ -215,9 +215,8 @@ extern "C" Light* cpp_attachLight(char *name, SceneNode* base,
l->setDiffuseColour(r,g,b);
// Pulled these numbers out of nowhere. Looks OK-ish. I can polish
// it later.
l->setAttenuation(8*radius, 0, 0.008, 0.0);
// This seems to look reasonably ok.
l->setAttenuation(3*radius, 0, 0, 12.0/(radius*radius));
// base might be null, sometimes lights don't have meshes
if(base) base->attachObject(l);
@ -225,6 +224,12 @@ extern "C" Light* cpp_attachLight(char *name, SceneNode* base,
return l;
}
// Toggle between fullscreen and windowed mode.
extern "C" void cpp_toggleFullscreen()
{
std::cout << "Not implemented yet\n";
}
extern "C" void cpp_setAmbient(float r, float g, float b, // Ambient light
float rs, float gs, float bs) // "Sunlight"
{