mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-28 03:06:41 +00:00
19 lines
517 B
C++
19 lines
517 B
C++
#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
|