From c2e5f24e981ecd4bc826075d274816469f75d4a4 Mon Sep 17 00:00:00 2001 From: mrohrlach Date: Sun, 4 Dec 2016 16:31:11 -0700 Subject: [PATCH] Tidying up --- apps/openmw/mwworld/projectilemanager.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/openmw/mwworld/projectilemanager.cpp b/apps/openmw/mwworld/projectilemanager.cpp index 1d290c8a1..3d9c4df90 100644 --- a/apps/openmw/mwworld/projectilemanager.cpp +++ b/apps/openmw/mwworld/projectilemanager.cpp @@ -169,7 +169,7 @@ namespace MWWorld if (createLight) { - // Combine colors of individual effects + // Case: magical effects (combine colors of individual effects) osg::Vec4 lightDiffuseColor; if (state.mIdMagic.size() > 0) { @@ -189,14 +189,14 @@ namespace MWWorld , lightDiffuseGreen / numberOfEffects , lightDiffuseBlue / numberOfEffects , 1.0f); - printf("%f, %f, %f", (lightDiffuseRed / numberOfEffects), (lightDiffuseGreen / numberOfEffects), (lightDiffuseBlue / numberOfEffects)); } else { + // Case: no magical effects, but still creating light lightDiffuseColor = osg::Vec4(0.814f, 0.682f, 0.652f, 1.0f); } - // Add magic bolt light + // Add light osg::ref_ptr projectileLight(new osg::Light); projectileLight->setAmbient(osg::Vec4(1.0f, 1.0f, 1.0f, 1.0f)); projectileLight->setDiffuse(lightDiffuseColor); @@ -206,7 +206,7 @@ namespace MWWorld projectileLight->setQuadraticAttenuation(0.f); projectileLight->setPosition(osg::Vec4(pos, 1.0)); - // Add magic bolt light source + // Add light source SceneUtil::LightSource* projectileLightSource = new SceneUtil::LightSource; projectileLightSource->setNodeMask(MWRender::Mask_Lighting); projectileLightSource->setRadius(66.f);