2022-06-30 01:15:12 +00:00
|
|
|
#ifndef OPENMW_COMPONENTS_RESOURCE_EXTRADATA_H
|
|
|
|
#define OPENMW_COMPONENTS_RESOURCE_EXTRADATA_H
|
|
|
|
|
|
|
|
#include <osg/NodeVisitor>
|
|
|
|
|
|
|
|
namespace Resource
|
|
|
|
{
|
|
|
|
class SceneManager;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace osg
|
|
|
|
{
|
|
|
|
class Node;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace SceneUtil
|
|
|
|
{
|
2023-10-28 17:23:48 +00:00
|
|
|
void setupSoftEffect(osg::Node& node, float size, bool falloff, float falloffDepth);
|
2023-11-10 16:02:53 +00:00
|
|
|
void setupDistortion(osg::Node& node, float distortionStrength);
|
2023-09-24 10:20:09 +00:00
|
|
|
|
2022-06-30 01:15:12 +00:00
|
|
|
class ProcessExtraDataVisitor : public osg::NodeVisitor
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ProcessExtraDataVisitor(Resource::SceneManager* sceneMgr)
|
|
|
|
: osg::NodeVisitor(TRAVERSE_ALL_CHILDREN)
|
|
|
|
, mSceneMgr(sceneMgr)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void apply(osg::Node& node) override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
Resource::SceneManager* mSceneMgr;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|