mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 16:15:31 +00:00
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
|
// Add magic bolt light
|
||||||
osg::ref_ptr<osg::Light> projectileLight(new osg::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(1.0f, 1.0f, 1.0f, 1.0f));
|
||||||
projectileLight->setAmbient(osg::Vec4(0.32f, 0.08f, 0.01f, 1.0f));
|
projectileLight->setDiffuse(osg::Vec4(0.814f, 0.682f, 0.652f, 1.0f));
|
||||||
projectileLight->setSpecular(osg::Vec4(0, 0, 0, 0));
|
projectileLight->setSpecular(osg::Vec4(30.0f, 30.0f, 30.0f, 1.0f));
|
||||||
projectileLight->setLinearAttenuation(0.5f / 15);
|
projectileLight->setConstantAttenuation(0.f);
|
||||||
|
projectileLight->setLinearAttenuation(0.1f);
|
||||||
|
projectileLight->setQuadraticAttenuation(0.f);
|
||||||
projectileLight->setPosition(osg::Vec4(pos, 1.0));
|
projectileLight->setPosition(osg::Vec4(pos, 1.0));
|
||||||
|
|
||||||
// Add magic bolt light source
|
// Add magic bolt light source
|
||||||
|
|
Loading…
Reference in a new issue