夜视效果
关键代码
// 后期资源
std::string strVertShaderFile = "../EarthData/Shaders/Post/Post.vert.glsl";
std::string strFragShaderFile = "../EarthData/Shaders/Post/Post.frag.glsl";
std::string strPostImageFile = "../EarthData/Texture/RadarOverlay.tga";
m_pPostCamera = new osg::Camera;
m_pPostCamera->setViewMatrix(osg::Matrix::identity());
m_pPostCamera->setAllowEventFocus(false);
m_pPostCamera->setReferenceFrame(osg::Transform::ABSOLUTE_RF);
m_pPostCamera->setViewport(x, y, width, height);
m_pPostCamera->setProjectionMatrixAsOrtho2D(x, width, y, height);
m_pPostCamera->setClearMask(GL_DEPTH_BUFFER_BIT);
m_pPostCamera->setRenderOrder(o
标签:粗步,string,..,pPostCamera,夜视,osgearth,Post,EarthData,osg
From: https://blog.csdn.net/hksuifeng/article/details/145280010