Skip to content

Commit

Permalink
Merge branch 'master' of github.com:gwaldron/osgearth
Browse files Browse the repository at this point in the history
  • Loading branch information
gwaldron committed Aug 2, 2024
2 parents e9678bf + 73f2876 commit ecff31f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cmake/FindCesiumNative.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,15 @@ find_cesium_library(CESIUM_NATIVE_GLTF_READER CesiumGltfReader)
find_cesium_library(CESIUM_NATIVE_ION_CLIENT CesiumIonClient)
find_cesium_library(CESIUM_NATIVE_JSONREADER CesiumJsonReader)
find_cesium_library(CESIUM_NATIVE_UTILITY CesiumUtility)
find_cesium_library(CESIUM_NATIVE_QUANTIZED_MESH_TERRAIN CesiumQuantizedMeshTerrain)

find_cesium_library(CESIUM_NATIVE_RASTER_OVERLAYS CesiumRasterOverlays)
find_cesium_library(CESIUM_NATIVE_3DTILES_CONTENT Cesium3DTilesContent)
find_cesium_library(CESIUM_NATIVE_GLTF_CONTENT CesiumGltfContent)

find_cesium_library(CESIUM_NATIVE_CSPRNG csprng)
find_cesium_library(CESIUM_NATIVE_DRACO draco)
find_cesium_library(CESIUM_NATIVE_KTX_READ ktx_read)
find_cesium_library(CESIUM_NATIVE_KTX ktx)
find_cesium_library(CESIUM_NATIVE_MODPB64 modp_b64)
find_cesium_library(CESIUM_NATIVE_S2GEOMETRY s2geometry)
find_cesium_library(CESIUM_NATIVE_SPDLOG spdlog)
Expand Down
2 changes: 1 addition & 1 deletion src/osgEarth/Color.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ Color::Color( const std::string& input, Format format )
{
L = osgEarth::as<float>(components[2], 0.0f);
}
osg::Vec4 c(H / 255.0f, S / 100.0f, L / 100.0f, 1.0f);
osg::Vec4 c(H / 360.0f, S / 100.0f, L / 100.0f, 1.0f);
hsl2rgb(c);
set(c.r(), c.g(), c.b(), c.a());
}
Expand Down
5 changes: 4 additions & 1 deletion src/osgEarthCesium/CesiumIon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ CesiumIon::CesiumIon()

void CesiumIon::refresh()
{
Connection connection(Context::instance().asyncSystem, Context::instance().assetAccessor, getCesiumIonKey());
ApplicationData data;
data.authenticationMode = AuthenticationMode::SingleUser;

Connection connection(Context::instance().asyncSystem, Context::instance().assetAccessor, getCesiumIonKey(), data);

bool loaded = false;

Expand Down

0 comments on commit ecff31f

Please sign in to comment.