Updates to the light points support to improve the control of the blending of
light points with their background.
This commit is contained in:
@@ -24,9 +24,33 @@ class OSGSIM_EXPORT LightPoint
|
||||
{
|
||||
public:
|
||||
|
||||
enum BlendingMode
|
||||
{
|
||||
OPAQUE,
|
||||
ADDITIVE,
|
||||
BLENDED
|
||||
};
|
||||
|
||||
LightPoint();
|
||||
|
||||
LightPoint(const osg::Vec3& position,
|
||||
const osg::Vec4& color);
|
||||
|
||||
LightPoint(bool on,
|
||||
const osg::Vec3& position,
|
||||
const osg::Vec4& color,
|
||||
float intensity=1.0f,
|
||||
float radius=1.0f,
|
||||
float maxPixelSize=30,
|
||||
Sector* sector=0,
|
||||
BlinkSequence* blinkSequence=0,
|
||||
BlendingMode blendingMode=BLENDED);
|
||||
|
||||
|
||||
LightPoint(const LightPoint& lp);
|
||||
|
||||
LightPoint& operator = (const LightPoint& lp);
|
||||
|
||||
|
||||
bool _on;
|
||||
osg::Vec3 _position;
|
||||
@@ -37,6 +61,8 @@ class OSGSIM_EXPORT LightPoint
|
||||
|
||||
osg::ref_ptr<Sector> _sector;
|
||||
osg::ref_ptr<BlinkSequence> _blinkSequence;
|
||||
|
||||
BlendingMode _blendingMode;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user