forked from teamnwah/openmw-tes3coop
Changed light values to better match vanilla. Still need to pull diffusion properties from spells
This commit is contained in:
parent
099e79edbe
commit
3816d0f6dc
1 changed files with 6 additions and 4 deletions
|
@ -173,10 +173,12 @@ namespace MWWorld
|
|||
{
|
||||
// Add magic bolt light
|
||||
osg::ref_ptr<osg::Light> projectileLight(new osg::Light);
|
||||
projectileLight->setDiffuse(osg::Vec4(0.95f, 0.71f, 0.25f, 1.0f));
|
||||
projectileLight->setAmbient(osg::Vec4(0.32f, 0.08f, 0.01f, 1.0f));
|
||||
projectileLight->setSpecular(osg::Vec4(0, 0, 0, 0));
|
||||
projectileLight->setLinearAttenuation(0.5f / 15);
|
||||
projectileLight->setAmbient(osg::Vec4(1.0f, 1.0f, 1.0f, 1.0f));
|
||||
projectileLight->setDiffuse(osg::Vec4(0.814f, 0.682f, 0.652f, 1.0f));
|
||||
projectileLight->setSpecular(osg::Vec4(30.0f, 30.0f, 30.0f, 1.0f));
|
||||
projectileLight->setConstantAttenuation(0.f);
|
||||
projectileLight->setLinearAttenuation(0.1f);
|
||||
projectileLight->setQuadraticAttenuation(0.f);
|
||||
projectileLight->setPosition(osg::Vec4(pos, 1.0));
|
||||
|
||||
// Add magic bolt light source
|
||||
|
|
Loading…
Reference in a new issue