@reearth/core 0.0.6-beta.0 → 0.0.6-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/core.js
CHANGED
|
@@ -79382,7 +79382,8 @@ vec3 reearth_calculateElevationMapForGlobe(vec4 colorToAlpha, vec3 color);
|
|
|
79382
79382
|
}
|
|
79383
79383
|
return color;
|
|
79384
79384
|
}
|
|
79385
|
-
`, IBLFS =
|
|
79385
|
+
`, IBLFS = `#ifdef ENABLE_VERTEX_LIGHTING
|
|
79386
|
+
// This file refers this implementation:
|
|
79386
79387
|
// https://github.com/takram-design-engineering/plateau-view/blob/8ea8bf1d5ef64319d92d0eb05b936cca7f1a2e8f/libs/cesium/src/shaders/imageBasedLightingStage.glsl
|
|
79387
79388
|
|
|
79388
79389
|
// Derived from:
|
|
@@ -79439,6 +79440,7 @@ vec4 reearth_computeImageBasedLightingColor(vec4 color) {
|
|
|
79439
79440
|
return vec4(color.rgb * czm_lightColor * diffuseIntensity, color.a);
|
|
79440
79441
|
}
|
|
79441
79442
|
}
|
|
79443
|
+
#endif
|
|
79442
79444
|
`, SEMI_MAJOR_RADIUS = 6378137, ECCENTRICITY = 1 / 298.257222101, SEMI_MINOR_RADIUS = (1 - ECCENTRICITY) * SEMI_MAJOR_RADIUS, GEOIDAL_HEIGHT = 36.7071, JapanSeaLevelEllipsoid = Object.assign(
|
|
79443
79445
|
new Ellipsoid$1(
|
|
79444
79446
|
SEMI_MAJOR_RADIUS + GEOIDAL_HEIGHT,
|
package/dist/core.umd.cjs
CHANGED
|
@@ -6071,7 +6071,8 @@ vec3 reearth_calculateElevationMapForGlobe(vec4 colorToAlpha, vec3 color);
|
|
|
6071
6071
|
}
|
|
6072
6072
|
return color;
|
|
6073
6073
|
}
|
|
6074
|
-
`,IBLFS
|
|
6074
|
+
`,IBLFS=`#ifdef ENABLE_VERTEX_LIGHTING
|
|
6075
|
+
// This file refers this implementation:
|
|
6075
6076
|
// https://github.com/takram-design-engineering/plateau-view/blob/8ea8bf1d5ef64319d92d0eb05b936cca7f1a2e8f/libs/cesium/src/shaders/imageBasedLightingStage.glsl
|
|
6076
6077
|
|
|
6077
6078
|
// Derived from:
|
|
@@ -6128,6 +6129,7 @@ vec4 reearth_computeImageBasedLightingColor(vec4 color) {
|
|
|
6128
6129
|
return vec4(color.rgb * czm_lightColor * diffuseIntensity, color.a);
|
|
6129
6130
|
}
|
|
6130
6131
|
}
|
|
6132
|
+
#endif
|
|
6131
6133
|
`,SEMI_MAJOR_RADIUS=6378137,ECCENTRICITY=1/298.257222101,SEMI_MINOR_RADIUS=(1-ECCENTRICITY)*SEMI_MAJOR_RADIUS,GEOIDAL_HEIGHT=36.7071,JapanSeaLevelEllipsoid=Object.assign(new Ellipsoid$1(SEMI_MAJOR_RADIUS+GEOIDAL_HEIGHT,SEMI_MAJOR_RADIUS+GEOIDAL_HEIGHT,SEMI_MINOR_RADIUS+GEOIDAL_HEIGHT),{geoidalHeight:GEOIDAL_HEIGHT}),source=`uniform sampler2D colorMap;
|
|
6132
6134
|
uniform float minHeight;
|
|
6133
6135
|
uniform float maxHeight;
|
package/package.json
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
#ifdef ENABLE_VERTEX_LIGHTING
|
|
1
2
|
// This file refers this implementation:
|
|
2
3
|
// https://github.com/takram-design-engineering/plateau-view/blob/8ea8bf1d5ef64319d92d0eb05b936cca7f1a2e8f/libs/cesium/src/shaders/imageBasedLightingStage.glsl
|
|
3
4
|
|
|
@@ -55,3 +56,4 @@ vec4 reearth_computeImageBasedLightingColor(vec4 color) {
|
|
|
55
56
|
return vec4(color.rgb * czm_lightColor * diffuseIntensity, color.a);
|
|
56
57
|
}
|
|
57
58
|
}
|
|
59
|
+
#endif
|