@rtzh/engine 0.0.12 → 0.0.13
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/Build/Workers/chunk-2J26NSQJ.js +57 -0
- package/Build/Workers/chunk-2ZWJOYYZ.js +497 -0
- package/Build/Workers/chunk-3ENHMKKX.js +1800 -0
- package/Build/Workers/chunk-47CWFJX6.js +124 -0
- package/Build/Workers/chunk-4VAD4BJM.js +55 -0
- package/Build/Workers/chunk-5DTY5JIA.js +256 -0
- package/Build/Workers/chunk-623LOZW5.js +511 -0
- package/Build/Workers/chunk-6WNAMM2J.js +368 -0
- package/Build/Workers/chunk-7IJ6YJDR.js +439 -0
- package/Build/Workers/chunk-A44RSIOC.js +138 -0
- package/Build/Workers/chunk-ALHM5LNB.js +163 -0
- package/Build/Workers/chunk-ASKKSAO2.js +114 -0
- package/Build/Workers/chunk-AUOSJ7RD.js +1483 -0
- package/Build/Workers/chunk-BLMLQN3N.js +288 -0
- package/Build/Workers/chunk-BLPBGSIN.js +778 -0
- package/Build/Workers/chunk-BVMMZTO2.js +73 -0
- package/Build/Workers/chunk-DQLCJMOH.js +692 -0
- package/Build/Workers/chunk-DU24KQOE.js +352 -0
- package/Build/Workers/chunk-EAXGQLHV.js +102 -0
- package/Build/Workers/chunk-EPAJ4UIR.js +75 -0
- package/Build/Workers/chunk-F2MK22SO.js +198 -0
- package/Build/Workers/chunk-F4XSN4LN.js +642 -0
- package/Build/Workers/chunk-FAVFRMK5.js +1317 -0
- package/Build/Workers/chunk-FKKXVIQS.js +58 -0
- package/Build/Workers/chunk-FQBOVVHM.js +2719 -0
- package/Build/Workers/chunk-HTTTEW64.js +305 -0
- package/Build/Workers/chunk-HZQONEX2.js +241 -0
- package/Build/Workers/chunk-ILNFTW5Z.js +788 -0
- package/Build/Workers/chunk-J6DW5QIM.js +55 -0
- package/Build/Workers/chunk-JCJRAI2M.js +8366 -0
- package/Build/Workers/chunk-JEFN4ZPU.js +44 -0
- package/Build/Workers/chunk-KWI3TOQ3.js +1460 -0
- package/Build/Workers/chunk-L63MA7DS.js +299 -0
- package/Build/Workers/chunk-LKCPP73L.js +139 -0
- package/Build/Workers/chunk-MBKDVX63.js +1067 -0
- package/Build/Workers/chunk-ODIGZZ3R.js +682 -0
- package/Build/Workers/chunk-Q2GNXOAO.js +414 -0
- package/Build/Workers/chunk-QCRUW3OJ.js +387 -0
- package/Build/Workers/chunk-QG2AN7NK.js +2058 -0
- package/Build/Workers/chunk-RGAJSVVU.js +1045 -0
- package/Build/Workers/chunk-RJJMDQTR.js +455 -0
- package/Build/Workers/chunk-RMYM65KX.js +629 -0
- package/Build/Workers/chunk-S3QVNBQ2.js +837 -0
- package/Build/Workers/chunk-SL6RUOEJ.js +1443 -0
- package/Build/Workers/chunk-TDP5NGTP.js +171 -0
- package/Build/Workers/chunk-TDQUDFAH.js +940 -0
- package/Build/Workers/chunk-TVCOYHIQ.js +1054 -0
- package/Build/Workers/chunk-TVVFCSTW.js +162 -0
- package/Build/Workers/chunk-UCLPK6WA.js +101 -0
- package/Build/Workers/chunk-UR5UUI2S.js +280 -0
- package/Build/Workers/chunk-VH6ZXWXV.js +398 -0
- package/Build/Workers/chunk-VU5DFAMV.js +97 -0
- package/Build/Workers/chunk-WMSJG24O.js +352 -0
- package/Build/Workers/chunk-X7RJMQRF.js +476 -0
- package/Build/Workers/chunk-XOKZRQNH.js +219 -0
- package/Build/Workers/chunk-YF767F7T.js +37 -0
- package/Build/Workers/chunk-YLNURUBI.js +3514 -0
- package/Build/Workers/combineGeometry.js +24 -24
- package/Build/Workers/createBoxGeometry.js +18 -18
- package/Build/Workers/createBoxOutlineGeometry.js +16 -16
- package/Build/Workers/createCircleGeometry.js +26 -26
- package/Build/Workers/createCircleOutlineGeometry.js +19 -19
- package/Build/Workers/createCoplanarPolygonGeometry.js +33 -33
- package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +31 -31
- package/Build/Workers/createCorridorGeometry.js +29 -29
- package/Build/Workers/createCorridorOutlineGeometry.js +28 -28
- package/Build/Workers/createCylinderGeometry.js +20 -20
- package/Build/Workers/createCylinderOutlineGeometry.js +18 -18
- package/Build/Workers/createEllipseGeometry.js +26 -26
- package/Build/Workers/createEllipseOutlineGeometry.js +19 -19
- package/Build/Workers/createEllipsoidGeometry.js +19 -19
- package/Build/Workers/createEllipsoidOutlineGeometry.js +18 -18
- package/Build/Workers/createFrustumGeometry.js +18 -18
- package/Build/Workers/createFrustumOutlineGeometry.js +18 -18
- package/Build/Workers/createGeometry.js +24 -24
- package/Build/Workers/createGroundPolylineGeometry.js +22 -22
- package/Build/Workers/createPlaneGeometry.js +16 -16
- package/Build/Workers/createPlaneOutlineGeometry.js +15 -15
- package/Build/Workers/createPolygonGeometry.js +32 -32
- package/Build/Workers/createPolygonOutlineGeometry.js +30 -30
- package/Build/Workers/createPolylineGeometry.js +25 -25
- package/Build/Workers/createPolylineVolumeGeometry.js +31 -31
- package/Build/Workers/createPolylineVolumeOutlineGeometry.js +27 -27
- package/Build/Workers/createRectangleGeometry.js +27 -27
- package/Build/Workers/createRectangleOutlineGeometry.js +20 -20
- package/Build/Workers/createSimplePolylineGeometry.js +23 -23
- package/Build/Workers/createSphereGeometry.js +19 -19
- package/Build/Workers/createSphereOutlineGeometry.js +18 -18
- package/Build/Workers/createTaskProcessorWorker.js +3 -3
- package/Build/Workers/createVectorTileClampedPolylines.js +14 -14
- package/Build/Workers/createVectorTileGeometries.js +24 -24
- package/Build/Workers/createVectorTilePoints.js +13 -13
- package/Build/Workers/createVectorTilePolygons.js +22 -22
- package/Build/Workers/createVectorTilePolylines.js +14 -14
- package/Build/Workers/createVerticesFromCesium3DTilesTerrain.js +25 -25
- package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +22 -22
- package/Build/Workers/createVerticesFromHeightmap.js +22 -22
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +20 -20
- package/Build/Workers/createWallGeometry.js +24 -24
- package/Build/Workers/createWallOutlineGeometry.js +23 -23
- package/Build/Workers/decodeDraco.js +10 -10
- package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +5 -5
- package/Build/Workers/decodeI3S.js +10 -10
- package/Build/Workers/gaussianSplatSorter.js +4 -4
- package/Build/Workers/gaussianSplatTextureGenerator.js +4 -4
- package/Build/Workers/incrementallyBuildTerrainPicker.js +10 -10
- package/Build/Workers/transcodeKTX2.js +6 -6
- package/Build/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +22 -22
- package/Build/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +25 -25
- package/Source/Scene/Model/CPUStylingPipelineStage.js +4 -1
- package/Source/Scene/Model/CustomShader.js +21 -0
- package/Source/Scene/Model/CustomShaderPipelineStage.js +9 -0
- package/Source/Scene/Model/ModelDrawCommand.js +52 -3
- package/Source/Shaders/Model/CPUStylingStageFS.glsl +4 -1
- package/Source/Shaders/Model/CPUStylingStageFS.js +4 -1
- package/Source/Shaders/Model/CPUStylingStageVS.glsl +4 -1
- package/Source/Shaders/Model/CPUStylingStageVS.js +4 -1
- package/Source/Shaders/Model/ModelFS.glsl +11 -9
- package/Source/Shaders/Model/ModelFS.js +11 -9
- package/index.d.ts +8 -0
- package/index.js +64 -64
- package/package.json +1 -1
|
@@ -70,6 +70,7 @@ function ModelDrawCommand(options) {
|
|
|
70
70
|
// Silhouettes for primitives with both opaque and translucent features
|
|
71
71
|
// are not yet supported.
|
|
72
72
|
this._autoTranslucency = renderResources.autoTranslucency === true;
|
|
73
|
+
this._inheritedTranslucent = renderResources.inheritedTranslucent === true;
|
|
73
74
|
const needsTranslucentCommand =
|
|
74
75
|
!isTranslucent && (!hasSilhouette || this._autoTranslucency);
|
|
75
76
|
|
|
@@ -223,6 +224,28 @@ function initialize(drawCommand) {
|
|
|
223
224
|
|
|
224
225
|
derivedCommands.push(drawCommand._silhouetteModelCommand);
|
|
225
226
|
derivedCommands.push(drawCommand._silhouetteColorCommand);
|
|
227
|
+
|
|
228
|
+
if (drawCommand._inheritedTranslucent) {
|
|
229
|
+
const translucentCommand = drawCommand._translucentCommand.command;
|
|
230
|
+
drawCommand._inheritedSilhouetteModelCommand = new ModelDerivedCommand({
|
|
231
|
+
command: deriveSilhouetteModelCommand(translucentCommand, model),
|
|
232
|
+
updateShadows: true,
|
|
233
|
+
updateBackFaceCulling: false,
|
|
234
|
+
updateCullFace: false,
|
|
235
|
+
updateDebugShowBoundingVolume: true,
|
|
236
|
+
});
|
|
237
|
+
drawCommand._inheritedSilhouetteColorCommand = new ModelDerivedCommand({
|
|
238
|
+
command: deriveSilhouetteColorCommand(translucentCommand, model),
|
|
239
|
+
updateShadows: false,
|
|
240
|
+
updateBackFaceCulling: false,
|
|
241
|
+
updateCullFace: false,
|
|
242
|
+
updateDebugShowBoundingVolume: false,
|
|
243
|
+
});
|
|
244
|
+
derivedCommands.push(
|
|
245
|
+
drawCommand._inheritedSilhouetteModelCommand,
|
|
246
|
+
drawCommand._inheritedSilhouetteColorCommand,
|
|
247
|
+
);
|
|
248
|
+
}
|
|
226
249
|
}
|
|
227
250
|
|
|
228
251
|
if (drawCommand._needsEdgeCommands) {
|
|
@@ -539,11 +562,24 @@ ModelDrawCommand.prototype.pushCommands = function (frameState, result) {
|
|
|
539
562
|
}
|
|
540
563
|
|
|
541
564
|
const styleCommandsNeeded = this.model.styleCommandsNeeded;
|
|
542
|
-
|
|
565
|
+
const autoEnabled = isAutoTranslucencyEnabled(this);
|
|
566
|
+
if (!autoEnabled && this._inheritedTranslucent) {
|
|
567
|
+
pushCommand(
|
|
568
|
+
result,
|
|
569
|
+
this._inheritedSilhouetteModelCommand ?? this._translucentCommand,
|
|
570
|
+
use2D,
|
|
571
|
+
);
|
|
572
|
+
return result;
|
|
573
|
+
}
|
|
574
|
+
if (autoEnabled && this._needsTranslucentCommand) {
|
|
543
575
|
// Final alpha is only known in the fragment shader. Style statistics cannot
|
|
544
576
|
// suppress either pass, including when every styled feature is opaque.
|
|
545
577
|
pushCommand(result, this._translucentCommand, use2D);
|
|
546
|
-
} else if (
|
|
578
|
+
} else if (
|
|
579
|
+
this._needsTranslucentCommand &&
|
|
580
|
+
!this._needsSilhouetteCommands &&
|
|
581
|
+
defined(styleCommandsNeeded)
|
|
582
|
+
) {
|
|
547
583
|
// StyleCommandsNeeded has three values: all opaque, all translucent, or both.
|
|
548
584
|
if (styleCommandsNeeded !== StyleCommandsNeeded.ALL_OPAQUE) {
|
|
549
585
|
pushCommand(result, this._translucentCommand, use2D);
|
|
@@ -607,7 +643,11 @@ ModelDrawCommand.prototype.pushSilhouetteCommands = function (
|
|
|
607
643
|
result,
|
|
608
644
|
) {
|
|
609
645
|
const use2D = shouldUse2DCommands(this, frameState);
|
|
610
|
-
|
|
646
|
+
const command =
|
|
647
|
+
!isAutoTranslucencyEnabled(this) && this._inheritedSilhouetteColorCommand
|
|
648
|
+
? this._inheritedSilhouetteColorCommand
|
|
649
|
+
: this._silhouetteColorCommand;
|
|
650
|
+
pushCommand(result, command, use2D);
|
|
611
651
|
|
|
612
652
|
return result;
|
|
613
653
|
};
|
|
@@ -630,6 +670,13 @@ ModelDrawCommand.prototype.pushEdgeCommands = function (frameState, result) {
|
|
|
630
670
|
return result;
|
|
631
671
|
};
|
|
632
672
|
|
|
673
|
+
function isAutoTranslucencyEnabled(drawCommand) {
|
|
674
|
+
return (
|
|
675
|
+
drawCommand._autoTranslucency &&
|
|
676
|
+
drawCommand.model.customShader?.autoTranslucencyEnabled !== false
|
|
677
|
+
);
|
|
678
|
+
}
|
|
679
|
+
|
|
633
680
|
function pushCommand(commandList, derivedCommand, use2D) {
|
|
634
681
|
commandList.push(derivedCommand.command);
|
|
635
682
|
if (use2D) {
|
|
@@ -688,6 +735,8 @@ function derive2DCommands(drawCommand) {
|
|
|
688
735
|
derive2DCommand(drawCommand, drawCommand._skipLodStencilCommand);
|
|
689
736
|
derive2DCommand(drawCommand, drawCommand._silhouetteModelCommand);
|
|
690
737
|
derive2DCommand(drawCommand, drawCommand._silhouetteColorCommand);
|
|
738
|
+
derive2DCommand(drawCommand, drawCommand._inheritedSilhouetteModelCommand);
|
|
739
|
+
derive2DCommand(drawCommand, drawCommand._inheritedSilhouetteColorCommand);
|
|
691
740
|
derive2DCommand(drawCommand, drawCommand._edgeCommand);
|
|
692
741
|
}
|
|
693
742
|
|
|
@@ -31,7 +31,10 @@ void cpuStylingStage(inout czm_modelMaterial material, SelectedFeature feature)
|
|
|
31
31
|
|
|
32
32
|
// If a feature ID vertex attribute is used, the pass type filter is applied in the vertex shader.
|
|
33
33
|
// So, we only apply in in the fragment shader if the feature ID texture is used.
|
|
34
|
-
#if defined(HAS_SELECTED_FEATURE_ID_TEXTURE) && !defined(HAS_CLASSIFICATION)
|
|
34
|
+
#if defined(HAS_SELECTED_FEATURE_ID_TEXTURE) && !defined(HAS_CLASSIFICATION)
|
|
35
|
+
#ifdef CUSTOM_SHADER_AUTO_TRANSLUCENCY
|
|
36
|
+
if (!model_autoTranslucencyEnabled)
|
|
37
|
+
#endif
|
|
35
38
|
filterByPassType(featureColor);
|
|
36
39
|
#endif
|
|
37
40
|
|
|
@@ -32,7 +32,10 @@ void cpuStylingStage(inout czm_modelMaterial material, SelectedFeature feature)\
|
|
|
32
32
|
\n\
|
|
33
33
|
// If a feature ID vertex attribute is used, the pass type filter is applied in the vertex shader.\n\
|
|
34
34
|
// So, we only apply in in the fragment shader if the feature ID texture is used.\n\
|
|
35
|
-
#if defined(HAS_SELECTED_FEATURE_ID_TEXTURE) && !defined(HAS_CLASSIFICATION)
|
|
35
|
+
#if defined(HAS_SELECTED_FEATURE_ID_TEXTURE) && !defined(HAS_CLASSIFICATION)\n\
|
|
36
|
+
#ifdef CUSTOM_SHADER_AUTO_TRANSLUCENCY\n\
|
|
37
|
+
if (!model_autoTranslucencyEnabled)\n\
|
|
38
|
+
#endif\n\
|
|
36
39
|
filterByPassType(featureColor);\n\
|
|
37
40
|
#endif\n\
|
|
38
41
|
\n\
|
|
@@ -24,7 +24,10 @@ void cpuStylingStage(inout vec3 positionMC, inout SelectedFeature feature)
|
|
|
24
24
|
float show = ceil(feature.color.a);
|
|
25
25
|
positionMC *= show;
|
|
26
26
|
|
|
27
|
-
#if defined(HAS_SELECTED_FEATURE_ID_ATTRIBUTE) && !defined(HAS_CLASSIFICATION)
|
|
27
|
+
#if defined(HAS_SELECTED_FEATURE_ID_ATTRIBUTE) && !defined(HAS_CLASSIFICATION)
|
|
28
|
+
#ifdef CUSTOM_SHADER_AUTO_TRANSLUCENCY
|
|
29
|
+
if (!model_autoTranslucencyEnabled)
|
|
30
|
+
#endif
|
|
28
31
|
filterByPassType(positionMC, feature.color);
|
|
29
32
|
#endif
|
|
30
33
|
}
|
|
@@ -25,7 +25,10 @@ void cpuStylingStage(inout vec3 positionMC, inout SelectedFeature feature)\n\
|
|
|
25
25
|
float show = ceil(feature.color.a);\n\
|
|
26
26
|
positionMC *= show;\n\
|
|
27
27
|
\n\
|
|
28
|
-
#if defined(HAS_SELECTED_FEATURE_ID_ATTRIBUTE) && !defined(HAS_CLASSIFICATION)
|
|
28
|
+
#if defined(HAS_SELECTED_FEATURE_ID_ATTRIBUTE) && !defined(HAS_CLASSIFICATION)\n\
|
|
29
|
+
#ifdef CUSTOM_SHADER_AUTO_TRANSLUCENCY\n\
|
|
30
|
+
if (!model_autoTranslucencyEnabled)\n\
|
|
31
|
+
#endif\n\
|
|
29
32
|
filterByPassType(positionMC, feature.color);\n\
|
|
30
33
|
#endif\n\
|
|
31
34
|
}\n\
|
|
@@ -174,15 +174,17 @@ void main()
|
|
|
174
174
|
#endif
|
|
175
175
|
|
|
176
176
|
#if defined(CUSTOM_SHADER_AUTO_TRANSLUCENCY) && !defined(METADATA_PICKING_ENABLED)
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
if (
|
|
184
|
-
|
|
185
|
-
|
|
177
|
+
if (model_autoTranslucencyEnabled) {
|
|
178
|
+
// Classify only after all material, style, and overlay alpha modifiers.
|
|
179
|
+
color.a = clamp(color.a, 0.0, 1.0);
|
|
180
|
+
if (color.a <= 0.0) {
|
|
181
|
+
discard;
|
|
182
|
+
}
|
|
183
|
+
if (czm_pass == czm_passTranslucent) {
|
|
184
|
+
if (color.a >= 1.0) discard;
|
|
185
|
+
} else {
|
|
186
|
+
if (color.a < 1.0) discard;
|
|
187
|
+
}
|
|
186
188
|
}
|
|
187
189
|
#endif
|
|
188
190
|
|
|
@@ -175,15 +175,17 @@ void main()\n\
|
|
|
175
175
|
#endif\n\
|
|
176
176
|
\n\
|
|
177
177
|
#if defined(CUSTOM_SHADER_AUTO_TRANSLUCENCY) && !defined(METADATA_PICKING_ENABLED)\n\
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
if (
|
|
185
|
-
|
|
186
|
-
|
|
178
|
+
if (model_autoTranslucencyEnabled) {\n\
|
|
179
|
+
// Classify only after all material, style, and overlay alpha modifiers.\n\
|
|
180
|
+
color.a = clamp(color.a, 0.0, 1.0);\n\
|
|
181
|
+
if (color.a <= 0.0) {\n\
|
|
182
|
+
discard;\n\
|
|
183
|
+
}\n\
|
|
184
|
+
if (czm_pass == czm_passTranslucent) {\n\
|
|
185
|
+
if (color.a >= 1.0) discard;\n\
|
|
186
|
+
} else {\n\
|
|
187
|
+
if (color.a < 1.0) discard;\n\
|
|
188
|
+
}\n\
|
|
187
189
|
}\n\
|
|
188
190
|
#endif\n\
|
|
189
191
|
\n\
|
package/index.d.ts
CHANGED
|
@@ -38148,6 +38148,7 @@ See the {@link https://github.com/CesiumGS/cesium/tree/main/Documentation/Custom
|
|
|
38148
38148
|
* @param [options.lightingModel] - The lighting model (e.g. PBR or unlit). If present, this overrides the default lighting for the model.
|
|
38149
38149
|
* @param [options.translucencyMode = CustomShaderTranslucencyMode.INHERIT] - The translucency mode, which determines how the custom shader will be applied. If the value is CustomShaderTransulcencyMode.OPAQUE or CustomShaderTransulcencyMode.TRANSLUCENT, the custom shader will override settings from the model's material. If the value is CustomShaderTransulcencyMode.INHERIT, the custom shader will render as either opaque or translucent depending on the primitive's material settings.
|
|
38150
38150
|
AUTO classifies final fragment alpha using opaque and translucent commands sharing geometry.
|
|
38151
|
+
* @param [options.autoTranslucencyEnabled = true] - Whether AUTO classifies final alpha. Set to false to use the model's inherited passes.
|
|
38151
38152
|
* @param [options.uniforms] - A dictionary for user-defined uniforms. The key is the uniform name that will appear in the GLSL code. The value is an object that describes the uniform type and initial value
|
|
38152
38153
|
* @param [options.varyings] - A dictionary for declaring additional GLSL varyings used in the shader. The key is the varying name that will appear in the GLSL code. The value is the data type of the varying. For each varying, the declaration will be added to the top of the shader automatically. The caller is responsible for assigning a value in the vertex shader and using the value in the fragment shader.
|
|
38153
38154
|
* @param [options.vertexShaderText] - The custom vertex shader as a string of GLSL code. It must include a GLSL function called vertexMain. See the example for the expected signature. If not specified, the custom vertex shader step will be skipped in the computed vertex shader.
|
|
@@ -38158,6 +38159,7 @@ export class CustomShader {
|
|
|
38158
38159
|
mode?: CustomShaderMode;
|
|
38159
38160
|
lightingModel?: LightingModel;
|
|
38160
38161
|
translucencyMode?: CustomShaderTranslucencyMode;
|
|
38162
|
+
autoTranslucencyEnabled?: boolean;
|
|
38161
38163
|
uniforms?: {
|
|
38162
38164
|
[key: string]: UniformSpecifier;
|
|
38163
38165
|
};
|
|
@@ -38211,6 +38213,12 @@ export class CustomShader {
|
|
|
38211
38213
|
* @param value - The new value of the uniform.
|
|
38212
38214
|
*/
|
|
38213
38215
|
setUniform(uniformName: string, value: boolean | number | Cartesian2 | Cartesian3 | Cartesian4 | Matrix2 | Matrix3 | Matrix4 | string | Resource | TextureUniform): void;
|
|
38216
|
+
/**
|
|
38217
|
+
* Whether an AUTO shader classifies final fragment alpha. Changing this
|
|
38218
|
+
property reuses the shader and draw commands. When false, command
|
|
38219
|
+
submission and style filtering use the model's inherited passes.
|
|
38220
|
+
*/
|
|
38221
|
+
autoTranslucencyEnabled: boolean;
|
|
38214
38222
|
/**
|
|
38215
38223
|
* Returns true if this object was destroyed; otherwise, false.
|
|
38216
38224
|
<br /><br />
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
globalThis.CESIUM_VERSION = "0.0.
|
|
1
|
+
globalThis.CESIUM_VERSION = "0.0.14";
|
|
2
2
|
export { default as AutomaticUniforms } from './Source/Renderer/AutomaticUniforms.js';
|
|
3
3
|
export { default as Buffer } from './Source/Renderer/Buffer.js';
|
|
4
4
|
export { default as BufferUsage } from './Source/Renderer/BufferUsage.js';
|
|
@@ -153,60 +153,6 @@ export { default as VelocityVectorProperty } from './Source/DataSources/Velocity
|
|
|
153
153
|
export { default as Visualizer } from './Source/DataSources/Visualizer.js';
|
|
154
154
|
export { default as WallGeometryUpdater } from './Source/DataSources/WallGeometryUpdater.js';
|
|
155
155
|
export { default as WallGraphics } from './Source/DataSources/WallGraphics.js';
|
|
156
|
-
export { default as _shadersAdjustTranslucentFS } from './Source/Shaders/AdjustTranslucentFS.js';
|
|
157
|
-
export { default as _shadersAtmosphereCommon } from './Source/Shaders/AtmosphereCommon.js';
|
|
158
|
-
export { default as _shadersBillboardCollectionFS } from './Source/Shaders/BillboardCollectionFS.js';
|
|
159
|
-
export { default as _shadersBillboardCollectionVS } from './Source/Shaders/BillboardCollectionVS.js';
|
|
160
|
-
export { default as _shadersBrdfLutGeneratorFS } from './Source/Shaders/BrdfLutGeneratorFS.js';
|
|
161
|
-
export { default as _shadersCloudCollectionFS } from './Source/Shaders/CloudCollectionFS.js';
|
|
162
|
-
export { default as _shadersCloudCollectionVS } from './Source/Shaders/CloudCollectionVS.js';
|
|
163
|
-
export { default as _shadersCloudNoiseFS } from './Source/Shaders/CloudNoiseFS.js';
|
|
164
|
-
export { default as _shadersCloudNoiseVS } from './Source/Shaders/CloudNoiseVS.js';
|
|
165
|
-
export { default as _shadersCompareAndPackTranslucentDepth } from './Source/Shaders/CompareAndPackTranslucentDepth.js';
|
|
166
|
-
export { default as _shadersCompositeOITFS } from './Source/Shaders/CompositeOITFS.js';
|
|
167
|
-
export { default as _shadersComputeIrradianceFS } from './Source/Shaders/ComputeIrradianceFS.js';
|
|
168
|
-
export { default as _shadersComputeRadianceMapFS } from './Source/Shaders/ComputeRadianceMapFS.js';
|
|
169
|
-
export { default as _shadersConvolveSpecularMapFS } from './Source/Shaders/ConvolveSpecularMapFS.js';
|
|
170
|
-
export { default as _shadersConvolveSpecularMapVS } from './Source/Shaders/ConvolveSpecularMapVS.js';
|
|
171
|
-
export { default as _shadersDepthPlaneFS } from './Source/Shaders/DepthPlaneFS.js';
|
|
172
|
-
export { default as _shadersDepthPlaneVS } from './Source/Shaders/DepthPlaneVS.js';
|
|
173
|
-
export { default as _shadersEllipsoidFS } from './Source/Shaders/EllipsoidFS.js';
|
|
174
|
-
export { default as _shadersEllipsoidVS } from './Source/Shaders/EllipsoidVS.js';
|
|
175
|
-
export { default as _shadersFXAA3_11 } from './Source/Shaders/FXAA3_11.js';
|
|
176
|
-
export { default as _shadersGlobeFS } from './Source/Shaders/GlobeFS.js';
|
|
177
|
-
export { default as _shadersGlobeVS } from './Source/Shaders/GlobeVS.js';
|
|
178
|
-
export { default as _shadersGroundAtmosphere } from './Source/Shaders/GroundAtmosphere.js';
|
|
179
|
-
export { default as _shadersPointPrimitiveCollectionFS } from './Source/Shaders/PointPrimitiveCollectionFS.js';
|
|
180
|
-
export { default as _shadersPointPrimitiveCollectionVS } from './Source/Shaders/PointPrimitiveCollectionVS.js';
|
|
181
|
-
export { default as _shadersPolygonSignedDistanceFS } from './Source/Shaders/PolygonSignedDistanceFS.js';
|
|
182
|
-
export { default as _shadersPolylineCommon } from './Source/Shaders/PolylineCommon.js';
|
|
183
|
-
export { default as _shadersPolylineFS } from './Source/Shaders/PolylineFS.js';
|
|
184
|
-
export { default as _shadersPolylineShadowVolumeFS } from './Source/Shaders/PolylineShadowVolumeFS.js';
|
|
185
|
-
export { default as _shadersPolylineShadowVolumeMorphFS } from './Source/Shaders/PolylineShadowVolumeMorphFS.js';
|
|
186
|
-
export { default as _shadersPolylineShadowVolumeMorphVS } from './Source/Shaders/PolylineShadowVolumeMorphVS.js';
|
|
187
|
-
export { default as _shadersPolylineShadowVolumeVS } from './Source/Shaders/PolylineShadowVolumeVS.js';
|
|
188
|
-
export { default as _shadersPolylineVS } from './Source/Shaders/PolylineVS.js';
|
|
189
|
-
export { default as _shadersPrimitiveGaussianSplatFS } from './Source/Shaders/PrimitiveGaussianSplatFS.js';
|
|
190
|
-
export { default as _shadersPrimitiveGaussianSplatVS } from './Source/Shaders/PrimitiveGaussianSplatVS.js';
|
|
191
|
-
export { default as _shadersReprojectWebMercatorFS } from './Source/Shaders/ReprojectWebMercatorFS.js';
|
|
192
|
-
export { default as _shadersReprojectWebMercatorVS } from './Source/Shaders/ReprojectWebMercatorVS.js';
|
|
193
|
-
export { default as _shadersShadowVolumeAppearanceFS } from './Source/Shaders/ShadowVolumeAppearanceFS.js';
|
|
194
|
-
export { default as _shadersShadowVolumeAppearanceVS } from './Source/Shaders/ShadowVolumeAppearanceVS.js';
|
|
195
|
-
export { default as _shadersShadowVolumeFS } from './Source/Shaders/ShadowVolumeFS.js';
|
|
196
|
-
export { default as _shadersSkyAtmosphereCommon } from './Source/Shaders/SkyAtmosphereCommon.js';
|
|
197
|
-
export { default as _shadersSkyAtmosphereFS } from './Source/Shaders/SkyAtmosphereFS.js';
|
|
198
|
-
export { default as _shadersSkyAtmosphereVS } from './Source/Shaders/SkyAtmosphereVS.js';
|
|
199
|
-
export { default as _shadersSkyBoxFS } from './Source/Shaders/SkyBoxFS.js';
|
|
200
|
-
export { default as _shadersSkyBoxVS } from './Source/Shaders/SkyBoxVS.js';
|
|
201
|
-
export { default as _shadersSunFS } from './Source/Shaders/SunFS.js';
|
|
202
|
-
export { default as _shadersSunTextureFS } from './Source/Shaders/SunTextureFS.js';
|
|
203
|
-
export { default as _shadersSunVS } from './Source/Shaders/SunVS.js';
|
|
204
|
-
export { default as _shadersVector3DTileClampedPolylinesFS } from './Source/Shaders/Vector3DTileClampedPolylinesFS.js';
|
|
205
|
-
export { default as _shadersVector3DTileClampedPolylinesVS } from './Source/Shaders/Vector3DTileClampedPolylinesVS.js';
|
|
206
|
-
export { default as _shadersVector3DTilePolylinesVS } from './Source/Shaders/Vector3DTilePolylinesVS.js';
|
|
207
|
-
export { default as _shadersVectorTileVS } from './Source/Shaders/VectorTileVS.js';
|
|
208
|
-
export { default as _shadersViewportQuadFS } from './Source/Shaders/ViewportQuadFS.js';
|
|
209
|
-
export { default as _shadersViewportQuadVS } from './Source/Shaders/ViewportQuadVS.js';
|
|
210
156
|
export { default as addAllToArray } from './Source/Core/addAllToArray.js';
|
|
211
157
|
export { default as appendForwardSlash } from './Source/Core/appendForwardSlash.js';
|
|
212
158
|
export { default as ApproximateTerrainHeights } from './Source/Core/ApproximateTerrainHeights.js';
|
|
@@ -494,7 +440,60 @@ export { default as WindingOrder } from './Source/Core/WindingOrder.js';
|
|
|
494
440
|
export { default as WireframeIndexGenerator } from './Source/Core/WireframeIndexGenerator.js';
|
|
495
441
|
export { default as wrapFunction } from './Source/Core/wrapFunction.js';
|
|
496
442
|
export { default as writeTextToCanvas } from './Source/Core/writeTextToCanvas.js';
|
|
497
|
-
export { default as
|
|
443
|
+
export { default as _shadersAdjustTranslucentFS } from './Source/Shaders/AdjustTranslucentFS.js';
|
|
444
|
+
export { default as _shadersAtmosphereCommon } from './Source/Shaders/AtmosphereCommon.js';
|
|
445
|
+
export { default as _shadersBillboardCollectionFS } from './Source/Shaders/BillboardCollectionFS.js';
|
|
446
|
+
export { default as _shadersBillboardCollectionVS } from './Source/Shaders/BillboardCollectionVS.js';
|
|
447
|
+
export { default as _shadersBrdfLutGeneratorFS } from './Source/Shaders/BrdfLutGeneratorFS.js';
|
|
448
|
+
export { default as _shadersCloudCollectionFS } from './Source/Shaders/CloudCollectionFS.js';
|
|
449
|
+
export { default as _shadersCloudCollectionVS } from './Source/Shaders/CloudCollectionVS.js';
|
|
450
|
+
export { default as _shadersCloudNoiseFS } from './Source/Shaders/CloudNoiseFS.js';
|
|
451
|
+
export { default as _shadersCloudNoiseVS } from './Source/Shaders/CloudNoiseVS.js';
|
|
452
|
+
export { default as _shadersCompareAndPackTranslucentDepth } from './Source/Shaders/CompareAndPackTranslucentDepth.js';
|
|
453
|
+
export { default as _shadersCompositeOITFS } from './Source/Shaders/CompositeOITFS.js';
|
|
454
|
+
export { default as _shadersComputeIrradianceFS } from './Source/Shaders/ComputeIrradianceFS.js';
|
|
455
|
+
export { default as _shadersComputeRadianceMapFS } from './Source/Shaders/ComputeRadianceMapFS.js';
|
|
456
|
+
export { default as _shadersConvolveSpecularMapFS } from './Source/Shaders/ConvolveSpecularMapFS.js';
|
|
457
|
+
export { default as _shadersConvolveSpecularMapVS } from './Source/Shaders/ConvolveSpecularMapVS.js';
|
|
458
|
+
export { default as _shadersDepthPlaneFS } from './Source/Shaders/DepthPlaneFS.js';
|
|
459
|
+
export { default as _shadersDepthPlaneVS } from './Source/Shaders/DepthPlaneVS.js';
|
|
460
|
+
export { default as _shadersEllipsoidFS } from './Source/Shaders/EllipsoidFS.js';
|
|
461
|
+
export { default as _shadersEllipsoidVS } from './Source/Shaders/EllipsoidVS.js';
|
|
462
|
+
export { default as _shadersFXAA3_11 } from './Source/Shaders/FXAA3_11.js';
|
|
463
|
+
export { default as _shadersGlobeFS } from './Source/Shaders/GlobeFS.js';
|
|
464
|
+
export { default as _shadersGlobeVS } from './Source/Shaders/GlobeVS.js';
|
|
465
|
+
export { default as _shadersGroundAtmosphere } from './Source/Shaders/GroundAtmosphere.js';
|
|
466
|
+
export { default as _shadersPointPrimitiveCollectionFS } from './Source/Shaders/PointPrimitiveCollectionFS.js';
|
|
467
|
+
export { default as _shadersPointPrimitiveCollectionVS } from './Source/Shaders/PointPrimitiveCollectionVS.js';
|
|
468
|
+
export { default as _shadersPolygonSignedDistanceFS } from './Source/Shaders/PolygonSignedDistanceFS.js';
|
|
469
|
+
export { default as _shadersPolylineCommon } from './Source/Shaders/PolylineCommon.js';
|
|
470
|
+
export { default as _shadersPolylineFS } from './Source/Shaders/PolylineFS.js';
|
|
471
|
+
export { default as _shadersPolylineShadowVolumeFS } from './Source/Shaders/PolylineShadowVolumeFS.js';
|
|
472
|
+
export { default as _shadersPolylineShadowVolumeMorphFS } from './Source/Shaders/PolylineShadowVolumeMorphFS.js';
|
|
473
|
+
export { default as _shadersPolylineShadowVolumeMorphVS } from './Source/Shaders/PolylineShadowVolumeMorphVS.js';
|
|
474
|
+
export { default as _shadersPolylineShadowVolumeVS } from './Source/Shaders/PolylineShadowVolumeVS.js';
|
|
475
|
+
export { default as _shadersPolylineVS } from './Source/Shaders/PolylineVS.js';
|
|
476
|
+
export { default as _shadersPrimitiveGaussianSplatFS } from './Source/Shaders/PrimitiveGaussianSplatFS.js';
|
|
477
|
+
export { default as _shadersPrimitiveGaussianSplatVS } from './Source/Shaders/PrimitiveGaussianSplatVS.js';
|
|
478
|
+
export { default as _shadersReprojectWebMercatorFS } from './Source/Shaders/ReprojectWebMercatorFS.js';
|
|
479
|
+
export { default as _shadersReprojectWebMercatorVS } from './Source/Shaders/ReprojectWebMercatorVS.js';
|
|
480
|
+
export { default as _shadersShadowVolumeAppearanceFS } from './Source/Shaders/ShadowVolumeAppearanceFS.js';
|
|
481
|
+
export { default as _shadersShadowVolumeAppearanceVS } from './Source/Shaders/ShadowVolumeAppearanceVS.js';
|
|
482
|
+
export { default as _shadersShadowVolumeFS } from './Source/Shaders/ShadowVolumeFS.js';
|
|
483
|
+
export { default as _shadersSkyAtmosphereCommon } from './Source/Shaders/SkyAtmosphereCommon.js';
|
|
484
|
+
export { default as _shadersSkyAtmosphereFS } from './Source/Shaders/SkyAtmosphereFS.js';
|
|
485
|
+
export { default as _shadersSkyAtmosphereVS } from './Source/Shaders/SkyAtmosphereVS.js';
|
|
486
|
+
export { default as _shadersSkyBoxFS } from './Source/Shaders/SkyBoxFS.js';
|
|
487
|
+
export { default as _shadersSkyBoxVS } from './Source/Shaders/SkyBoxVS.js';
|
|
488
|
+
export { default as _shadersSunFS } from './Source/Shaders/SunFS.js';
|
|
489
|
+
export { default as _shadersSunTextureFS } from './Source/Shaders/SunTextureFS.js';
|
|
490
|
+
export { default as _shadersSunVS } from './Source/Shaders/SunVS.js';
|
|
491
|
+
export { default as _shadersVector3DTileClampedPolylinesFS } from './Source/Shaders/Vector3DTileClampedPolylinesFS.js';
|
|
492
|
+
export { default as _shadersVector3DTileClampedPolylinesVS } from './Source/Shaders/Vector3DTileClampedPolylinesVS.js';
|
|
493
|
+
export { default as _shadersVector3DTilePolylinesVS } from './Source/Shaders/Vector3DTilePolylinesVS.js';
|
|
494
|
+
export { default as _shadersVectorTileVS } from './Source/Shaders/VectorTileVS.js';
|
|
495
|
+
export { default as _shadersViewportQuadFS } from './Source/Shaders/ViewportQuadFS.js';
|
|
496
|
+
export { default as _shadersViewportQuadVS } from './Source/Shaders/ViewportQuadVS.js';
|
|
498
497
|
export { default as AlphaMode } from './Source/Scene/AlphaMode.js';
|
|
499
498
|
export { default as Appearance } from './Source/Scene/Appearance.js';
|
|
500
499
|
export { default as ArcGisBaseMapType } from './Source/Scene/ArcGisBaseMapType.js';
|
|
@@ -851,6 +850,7 @@ export { default as VoxelShapeType } from './Source/Scene/VoxelShapeType.js';
|
|
|
851
850
|
export { default as VoxelTraversal } from './Source/Scene/VoxelTraversal.js';
|
|
852
851
|
export { default as WebMapServiceImageryProvider } from './Source/Scene/WebMapServiceImageryProvider.js';
|
|
853
852
|
export { default as WebMapTileServiceImageryProvider } from './Source/Scene/WebMapTileServiceImageryProvider.js';
|
|
853
|
+
export { default as CesiumWidget } from './Source/Widget/CesiumWidget.js';
|
|
854
854
|
export { default as _shadersAllMaterialAppearanceFS } from './Source/Shaders/Appearances/AllMaterialAppearanceFS.js';
|
|
855
855
|
export { default as _shadersAllMaterialAppearanceVS } from './Source/Shaders/Appearances/AllMaterialAppearanceVS.js';
|
|
856
856
|
export { default as _shadersBasicMaterialAppearanceFS } from './Source/Shaders/Appearances/BasicMaterialAppearanceFS.js';
|
|
@@ -1114,6 +1114,14 @@ export { default as _shaderssolarRadius } from './Source/Shaders/Builtin/Constan
|
|
|
1114
1114
|
export { default as _shadersthreePiOver2 } from './Source/Shaders/Builtin/Constants/threePiOver2.js';
|
|
1115
1115
|
export { default as _shaderstwoPi } from './Source/Shaders/Builtin/Constants/twoPi.js';
|
|
1116
1116
|
export { default as _shaderswebMercatorMaxLatitude } from './Source/Shaders/Builtin/Constants/webMercatorMaxLatitude.js';
|
|
1117
|
+
export { default as _shadersdepthRangeStruct } from './Source/Shaders/Builtin/Structs/depthRangeStruct.js';
|
|
1118
|
+
export { default as _shadersmaterial } from './Source/Shaders/Builtin/Structs/material.js';
|
|
1119
|
+
export { default as _shadersmaterialInput } from './Source/Shaders/Builtin/Structs/materialInput.js';
|
|
1120
|
+
export { default as _shadersmodelMaterial } from './Source/Shaders/Builtin/Structs/modelMaterial.js';
|
|
1121
|
+
export { default as _shadersmodelVertexOutput } from './Source/Shaders/Builtin/Structs/modelVertexOutput.js';
|
|
1122
|
+
export { default as _shadersray } from './Source/Shaders/Builtin/Structs/ray.js';
|
|
1123
|
+
export { default as _shadersraySegment } from './Source/Shaders/Builtin/Structs/raySegment.js';
|
|
1124
|
+
export { default as _shadersshadowParameters } from './Source/Shaders/Builtin/Structs/shadowParameters.js';
|
|
1117
1125
|
export { default as _shadersacesTonemapping } from './Source/Shaders/Builtin/Functions/acesTonemapping.js';
|
|
1118
1126
|
export { default as _shadersalphaWeight } from './Source/Shaders/Builtin/Functions/alphaWeight.js';
|
|
1119
1127
|
export { default as _shadersantialias } from './Source/Shaders/Builtin/Functions/antialias.js';
|
|
@@ -1204,14 +1212,6 @@ export { default as _shaderswriteDepthClamp } from './Source/Shaders/Builtin/Fun
|
|
|
1204
1212
|
export { default as _shaderswriteLogDepth } from './Source/Shaders/Builtin/Functions/writeLogDepth.js';
|
|
1205
1213
|
export { default as _shaderswriteNonPerspective } from './Source/Shaders/Builtin/Functions/writeNonPerspective.js';
|
|
1206
1214
|
export { default as _shadersXYZToRGB } from './Source/Shaders/Builtin/Functions/XYZToRGB.js';
|
|
1207
|
-
export { default as _shadersdepthRangeStruct } from './Source/Shaders/Builtin/Structs/depthRangeStruct.js';
|
|
1208
|
-
export { default as _shadersmaterial } from './Source/Shaders/Builtin/Structs/material.js';
|
|
1209
|
-
export { default as _shadersmaterialInput } from './Source/Shaders/Builtin/Structs/materialInput.js';
|
|
1210
|
-
export { default as _shadersmodelMaterial } from './Source/Shaders/Builtin/Structs/modelMaterial.js';
|
|
1211
|
-
export { default as _shadersmodelVertexOutput } from './Source/Shaders/Builtin/Structs/modelVertexOutput.js';
|
|
1212
|
-
export { default as _shadersray } from './Source/Shaders/Builtin/Structs/ray.js';
|
|
1213
|
-
export { default as _shadersraySegment } from './Source/Shaders/Builtin/Structs/raySegment.js';
|
|
1214
|
-
export { default as _shadersshadowParameters } from './Source/Shaders/Builtin/Structs/shadowParameters.js';
|
|
1215
1215
|
export { default as AnchorPointDirect } from './Source/Scene/Model/Extensions/Gpm/AnchorPointDirect.js';
|
|
1216
1216
|
export { default as AnchorPointIndirect } from './Source/Scene/Model/Extensions/Gpm/AnchorPointIndirect.js';
|
|
1217
1217
|
export { default as CorrelationGroup } from './Source/Scene/Model/Extensions/Gpm/CorrelationGroup.js';
|