openmw-tes3coop/components/sceneutil/lightutil.hpp

20 lines
517 B
C++
Raw Normal View History

2016-01-06 12:19:15 +00:00
#ifndef OPENMW_COMPONENTS_LIGHTUTIL_H
#define OPENMW_COMPONENTS_LIGHTUTIL_H
namespace osg
{
class Light;
}
namespace SceneUtil
{
/// @brief Configures a light's attenuation according to vanilla Morrowind attenuation settings.
void configureLight(osg::Light* light, float radius, bool isExterior, bool outQuadInLin, bool useQuadratic,
float quadraticValue, float quadraticRadiusMult, bool useLinear, float linearRadiusMult,
float linearValue);
}
#endif