Added osgmultiplecameras example and support for pre/post multiplaction.
This commit is contained in:
@@ -64,6 +64,17 @@ class OSG_EXPORT CameraNode : public Transform, public CullSettings
|
||||
}
|
||||
|
||||
|
||||
enum TransformOrder
|
||||
{
|
||||
PRE_MULTIPLE,
|
||||
POST_MULTIPLE
|
||||
};
|
||||
|
||||
void setTransformOrder(TransformOrder order) { _transformOrder = order; }
|
||||
TransformOrder getTransformOrder() const { return _transformOrder; }
|
||||
|
||||
|
||||
|
||||
/** Set the projection matrix. Can be thought of as setting the lens of a camera. */
|
||||
inline void setProjectionMatrix(const osg::Matrixf& matrix) { _projectionMatrix.set(matrix); }
|
||||
|
||||
@@ -225,6 +236,8 @@ class OSG_EXPORT CameraNode : public Transform, public CullSettings
|
||||
Vec4 _clearColor;
|
||||
GLbitfield _clearMask;
|
||||
ref_ptr<Viewport> _viewport;
|
||||
|
||||
TransformOrder _transformOrder;
|
||||
Matrixd _projectionMatrix;
|
||||
Matrixd _viewMatrix;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user