首页 > 编程语言 >osgearth夜视效果(粗步实现,夜视算法后续改进)

osgearth夜视效果(粗步实现,夜视算法后续改进)

时间:2025-01-21 11:57:48浏览次数:3  
标签:粗步 string .. pPostCamera 夜视 osgearth Post EarthData osg

夜视效果

关键代码

	// 后期资源
	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

相关文章