Skip to content

Commit 1609040

Browse files
authored
Merge pull request #483 from EarthyScience/jp/quick-fix
Jp/quick fix
2 parents 6e2c504 + 4b13d8b commit 1609040

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/components/textures/shaders/sphereBlocksVert.glsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ uniform float animateProg;
1515

1616
vec3 givePosition(vec2 uv) {
1717
// Reverse the normalization using the bounds
18-
float longitude = -((1.0 - uv.x) * (lonBounds.y - lonBounds.x) + lonBounds.x);
18+
float longitude = ((1.0 - uv.x) * (lonBounds.y - lonBounds.x) + lonBounds.x);
1919
float latitude = uv.y * (latBounds.y - latBounds.x) + latBounds.x;
2020

2121
// Convert to Cartesian coordinates

src/components/textures/shaders/sphereBlocksVertFlat.glsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ uniform float animateProg;
1515

1616
vec3 givePosition(vec2 uv) {
1717
// Reverse the normalization using the bounds
18-
float longitude = -((1.0 - uv.x) * (lonBounds.y - lonBounds.x) + lonBounds.x);
18+
float longitude = ((1.0 - uv.x) * (lonBounds.y - lonBounds.x) + lonBounds.x);
1919
float latitude = uv.y * (latBounds.y - latBounds.x) + latBounds.x;
2020

2121
// Convert to Cartesian coordinates

src/components/ui/Colorbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const operationMap = {
3939
};
4040

4141
function Num2String(value: number){
42-
if (Math.abs(value) > 1e3 && Math.abs(value) < 1e6 || value === 0){
42+
if ((Math.abs(value) > 1e-3 && Math.abs(value) < 1e6) || value === 0){
4343
return value.toFixed(2)
4444
} else{
4545
return value.toExponential(2)

0 commit comments

Comments
 (0)