This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* -*-c++-*- */ | |
/* osgEarth - Dynamic map generation toolkit for OpenSceneGraph | |
* Copyright 2008-2014 Pelican Mapping | |
* http://osgearth.org | |
* | |
* osgEarth is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU Lesser General Public License as published by | |
* the Free Software Foundation; either version 2 of the License, or | |
* (at your option) any later version. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* -*-c++-*- */ | |
/* osgEarth - Dynamic map generation toolkit for OpenSceneGraph | |
* Copyright 2015 Pelican Mapping | |
* http://osgearth.org | |
* | |
* osgEarth is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU Lesser General Public License as published by | |
* the Free Software Foundation; either version 2 of the License, or | |
* (at your option) any later version. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <osgViewer/Viewer> | |
#include <osg/Depth> | |
#include <osg/Program> | |
#include <osg/Uniform> | |
#include <osgDB/ReadFile> | |
int | |
main(int argc, char** argv) | |
{ | |
osg::ArgumentParser arguments(&argc,argv); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* -*-c++-*- */ | |
/* osgEarth - Dynamic map generation toolkit for OpenSceneGraph | |
* Copyright 2015 Pelican Mapping | |
* http://osgearth.org | |
* | |
* osgEarth is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU Lesser General Public License as published by | |
* the Free Software Foundation; either version 2 of the License, or | |
* (at your option) any later version. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <osgViewer/Viewer> | |
#include <osgViewer/ViewerEventHandlers> | |
#include <osgEarth/VirtualProgram> | |
using namespace osgEarth; | |
struct VirtualDrawable : public osg::Drawable | |
{ | |
VirtualDrawable() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct OceanLayer : public Layer | |
{ | |
OceanLayer() : Layer() | |
{ | |
const char* oceanFS = | |
"#version 330 \n" | |
"void oceanFS(inout vec4 color) { \n" | |
" color = vec4(0.4, 0.4, 0.55, 0.8); \n" | |
"} \n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// | |
// Noise sandbox. | |
// Run with | |
// oe r.earth --uniform freq 64 16 --uniform amplitude 1 50 --uniform pers 0.5 0.9 --uniform lac 2.0 3.0 --uniform baseLOD 11 12 --uniform slopeAmp 0 1 --uniform curvatureAmp 0 1 --uniform DD -1 1 --sky --coords --activity | |
// | |
// | |
#include <osgViewer/Viewer> | |
#include <osgEarth/Notify> | |
#include <osgEarthUtil/EarthManipulator> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <osgEarth/MapNode> | |
#include <osgEarth/TileKey> | |
#include <osgEarth/Terrain> | |
#include <osgEarth/TerrainTileNode> | |
#include <osgEarth/GeoData> | |
#include <osgEarth/DPLineSegmentIntersector> | |
#include <osg/NodeVisitor> | |
using namespace osgEarth; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <osgEarth/Notify> | |
#include <osgEarth/Cache> | |
#include <osgEarthFeatures/FeatureSource> | |
#include <osgEarthDrivers/feature_wfs/WFSFeatureOptions> | |
using namespace osgEarth; | |
using namespace osgEarth::Features; | |
using namespace osgEarth::Drivers; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* -*-c++-*- */ | |
/* osgEarth - Dynamic map generation toolkit for OpenSceneGraph | |
* Copyright 2016 Pelican Mapping | |
* http://osgearth.org | |
* | |
* osgEarth is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU Lesser General Public License as published by | |
* the Free Software Foundation; either version 2 of the License, or | |
* (at your option) any later version. | |
* |
OlderNewer