From Farshid Lashkari, "This patch adds a CoordOriginMode to the osg::PointSprite attribute.
The mode needs to be changed to LOWER_LEFT when rendering point sprites to pbuffers or FBOs, otherwise the points will be transformed on the CPU."
This commit is contained in:
@@ -94,6 +94,7 @@ class OSG_EXPORT Point : public StateAttribute
|
||||
void setPointParametersSupported(bool flag) { _isPointParametersSupported=flag; }
|
||||
bool isPointParametersSupported() const { return _isPointParametersSupported; }
|
||||
|
||||
void glPointParameteri(GLenum pname, GLint param) const;
|
||||
void glPointParameterf(GLenum pname, GLfloat param) const;
|
||||
void glPointParameterfv(GLenum pname, const GLfloat *params) const;
|
||||
|
||||
@@ -103,6 +104,7 @@ class OSG_EXPORT Point : public StateAttribute
|
||||
|
||||
bool _isPointParametersSupported;
|
||||
|
||||
void* _glPointParameteri;
|
||||
void* _glPointParameterf;
|
||||
void* _glPointParameterfv;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user