virtual void traverse(osg::NodeVisitor &nv);
void setVisibility(double vis) { visibility = vis; }
double getVisibility() const { return visibility; }
+ static void makeNewProjMat(osg::Matrixd& oldProj, double znear, double zfar,
+ osg::Matrixd& projection);
protected:
- void makeNewProjMat(osg::Matrixd& oldProj, double znear, double zfar,
- osg::Matrixd& projection);
+
typedef std::vector< osg::ref_ptr<osg::Camera> > CameraList;
CameraList cameras;
enum CameraNum {
- BACKGROUND_CAMERA = 0,
- FAR_CAMERA = 1,
- NEAR_CAMERA = 2
+ FAR_CAMERA = 0,
+ NEAR_CAMERA = 1
};
double visibility;
static const double nearCameraFar;