@rtzh/engine 0.0.7 → 0.0.8
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/Source/Scene/Cesium3DTileset.js +1 -7
- package/Source/Scene/Model/BarycentricWireframePipelineStage.js +79 -95
- package/Source/Scene/Model/Model.js +6 -14
- package/Source/Scene/Model/Model3DTileContent.js +7 -12
- package/Source/Shaders/Model/ModelFS.glsl +7 -10
- package/Source/Shaders/Model/ModelFS.js +7 -10
- package/Source/Shaders/Model/ModelVS.glsl +2 -1
- package/Source/Shaders/Model/ModelVS.js +2 -1
- package/index.js +143 -143
- package/package.json +1 -1
|
@@ -4055,8 +4055,6 @@ Cesium3DTileset.prototype.showWireframe = function ({
|
|
|
4055
4055
|
this._debugWireframeScanAxis = new Cartesian3(0, 0, 1);
|
|
4056
4056
|
this._debugWireframeScanMin = 0.0;
|
|
4057
4057
|
this._debugWireframeScanMax = 1.0;
|
|
4058
|
-
this._debugWireframeModelMinHeight = undefined;
|
|
4059
|
-
this._debugWireframeModelMaxHeight = undefined;
|
|
4060
4058
|
|
|
4061
4059
|
if (defined(effects)) {
|
|
4062
4060
|
if (defined(effects.glow) && effects.glow.enabled) {
|
|
@@ -4068,7 +4066,7 @@ Cesium3DTileset.prototype.showWireframe = function ({
|
|
|
4068
4066
|
this._debugWireframeScanAxis = new Cartesian3(
|
|
4069
4067
|
direction === "x" ? 1 : 0,
|
|
4070
4068
|
direction === "y" ? 1 : 0,
|
|
4071
|
-
direction === "z" ? 1 : 0
|
|
4069
|
+
direction === "z" ? 1 : 0,
|
|
4072
4070
|
);
|
|
4073
4071
|
const bs = this.boundingSphere;
|
|
4074
4072
|
if (defined(bs)) {
|
|
@@ -4083,10 +4081,6 @@ Cesium3DTileset.prototype.showWireframe = function ({
|
|
|
4083
4081
|
this._debugWireframeScanMin = centerHeight - bs.radius;
|
|
4084
4082
|
this._debugWireframeScanMax = centerHeight + bs.radius;
|
|
4085
4083
|
}
|
|
4086
|
-
// Compute tileset height range from bounding sphere for scanline
|
|
4087
|
-
const centerHeight = Cartesian3.magnitude(bs.center);
|
|
4088
|
-
this._debugWireframeModelMinHeight = centerHeight - bs.radius;
|
|
4089
|
-
this._debugWireframeModelMaxHeight = centerHeight + bs.radius;
|
|
4090
4084
|
}
|
|
4091
4085
|
}
|
|
4092
4086
|
}
|
|
@@ -4,7 +4,6 @@ import Cartesian3 from "../../Core/Cartesian3.js";
|
|
|
4
4
|
import Color from "../../Core/Color.js";
|
|
5
5
|
import ComponentDatatype from "../../Core/ComponentDatatype.js";
|
|
6
6
|
import defined from "../../Core/defined.js";
|
|
7
|
-
import IndexDatatype from "../../Core/IndexDatatype.js";
|
|
8
7
|
import ModelUtility from "./ModelUtility.js";
|
|
9
8
|
import PrimitiveType from "../../Core/PrimitiveType.js";
|
|
10
9
|
import ShaderDestination from "../../Renderer/ShaderDestination.js";
|
|
@@ -17,6 +16,8 @@ const BarycentricWireframePipelineStage = {
|
|
|
17
16
|
name: "BarycentricWireframePipelineStage",
|
|
18
17
|
};
|
|
19
18
|
|
|
19
|
+
const defaultScanAxis = new Cartesian3(0, 0, 1);
|
|
20
|
+
|
|
20
21
|
BarycentricWireframePipelineStage.process = function (
|
|
21
22
|
renderResources,
|
|
22
23
|
primitive,
|
|
@@ -45,6 +46,8 @@ BarycentricWireframePipelineStage.process = function (
|
|
|
45
46
|
ShaderDestination.BOTH,
|
|
46
47
|
);
|
|
47
48
|
|
|
49
|
+
const scanlineEnabled = (model._debugWireframeScanSpeed ?? 0.0) > 0.0;
|
|
50
|
+
|
|
48
51
|
if (model.debugWireframeOverlay) {
|
|
49
52
|
shaderBuilder.addDefine(
|
|
50
53
|
"WIREFRAME_OVERLAY",
|
|
@@ -53,73 +56,41 @@ BarycentricWireframePipelineStage.process = function (
|
|
|
53
56
|
);
|
|
54
57
|
}
|
|
55
58
|
|
|
56
|
-
if (
|
|
59
|
+
if (scanlineEnabled) {
|
|
57
60
|
shaderBuilder.addDefine(
|
|
58
61
|
"WIREFRAME_SCANLINE",
|
|
59
62
|
undefined,
|
|
60
|
-
ShaderDestination.
|
|
63
|
+
ShaderDestination.BOTH,
|
|
61
64
|
);
|
|
62
65
|
}
|
|
63
66
|
|
|
64
67
|
shaderBuilder.addVarying("vec3", "v_barycentric");
|
|
65
|
-
|
|
66
|
-
|
|
68
|
+
if (scanlineEnabled) {
|
|
69
|
+
shaderBuilder.addVarying("vec3", "v_wireframeWorldPos");
|
|
70
|
+
}
|
|
67
71
|
|
|
68
|
-
shaderBuilder.addUniform(
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
"float",
|
|
85
|
-
"
|
|
86
|
-
ShaderDestination.FRAGMENT
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
"u_wireframeScanSpeed",
|
|
91
|
-
ShaderDestination.FRAGMENT,
|
|
92
|
-
);
|
|
93
|
-
shaderBuilder.addUniform(
|
|
94
|
-
"float",
|
|
95
|
-
"u_wireframeTime",
|
|
96
|
-
ShaderDestination.FRAGMENT,
|
|
97
|
-
);
|
|
98
|
-
shaderBuilder.addUniform(
|
|
99
|
-
"float",
|
|
100
|
-
"u_wireframeModelMinHeight",
|
|
101
|
-
ShaderDestination.BOTH,
|
|
102
|
-
);
|
|
103
|
-
shaderBuilder.addUniform(
|
|
104
|
-
"float",
|
|
105
|
-
"u_wireframeModelMaxHeight",
|
|
106
|
-
ShaderDestination.BOTH,
|
|
107
|
-
);
|
|
108
|
-
shaderBuilder.addUniform(
|
|
109
|
-
"vec3",
|
|
110
|
-
"u_wireframeScanAxis",
|
|
111
|
-
ShaderDestination.FRAGMENT,
|
|
112
|
-
);
|
|
113
|
-
shaderBuilder.addUniform(
|
|
114
|
-
"float",
|
|
115
|
-
"u_wireframeScanMin",
|
|
116
|
-
ShaderDestination.FRAGMENT,
|
|
117
|
-
);
|
|
118
|
-
shaderBuilder.addUniform(
|
|
119
|
-
"float",
|
|
120
|
-
"u_wireframeScanMax",
|
|
121
|
-
ShaderDestination.FRAGMENT,
|
|
122
|
-
);
|
|
72
|
+
shaderBuilder.addUniform("float", "u_wireframeWidth", ShaderDestination.FRAGMENT);
|
|
73
|
+
shaderBuilder.addUniform("vec4", "u_wireframeColor", ShaderDestination.FRAGMENT);
|
|
74
|
+
shaderBuilder.addUniform("float", "u_wireframeFillAlpha", ShaderDestination.FRAGMENT);
|
|
75
|
+
shaderBuilder.addUniform("float", "u_wireframeGlow", ShaderDestination.FRAGMENT);
|
|
76
|
+
|
|
77
|
+
const hasFillColor = defined(model._debugWireframeFillColor);
|
|
78
|
+
if (hasFillColor) {
|
|
79
|
+
shaderBuilder.addDefine(
|
|
80
|
+
"HAS_WIREFRAME_FILL_COLOR",
|
|
81
|
+
undefined,
|
|
82
|
+
ShaderDestination.FRAGMENT,
|
|
83
|
+
);
|
|
84
|
+
shaderBuilder.addUniform("vec4", "u_wireframeFillColor", ShaderDestination.FRAGMENT);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
if (scanlineEnabled) {
|
|
88
|
+
shaderBuilder.addUniform("float", "u_wireframeScanSpeed", ShaderDestination.FRAGMENT);
|
|
89
|
+
shaderBuilder.addUniform("float", "u_wireframeTime", ShaderDestination.FRAGMENT);
|
|
90
|
+
shaderBuilder.addUniform("vec3", "u_wireframeScanAxis", ShaderDestination.FRAGMENT);
|
|
91
|
+
shaderBuilder.addUniform("float", "u_wireframeScanMin", ShaderDestination.FRAGMENT);
|
|
92
|
+
shaderBuilder.addUniform("float", "u_wireframeScanMax", ShaderDestination.FRAGMENT);
|
|
93
|
+
}
|
|
123
94
|
|
|
124
95
|
const stageUniforms = renderResources.uniformMap;
|
|
125
96
|
stageUniforms.u_wireframeWidth = function () {
|
|
@@ -133,33 +104,38 @@ BarycentricWireframePipelineStage.process = function (
|
|
|
133
104
|
? 1.0
|
|
134
105
|
: (model._debugWireframeFillAlpha ?? 1.0);
|
|
135
106
|
};
|
|
107
|
+
if (hasFillColor) {
|
|
108
|
+
stageUniforms.u_wireframeFillColor = function () {
|
|
109
|
+
return model._debugWireframeFillColor;
|
|
110
|
+
};
|
|
111
|
+
}
|
|
136
112
|
stageUniforms.u_wireframeGlow = function () {
|
|
137
113
|
return model._debugWireframeGlow ?? 0.0;
|
|
138
114
|
};
|
|
139
|
-
stageUniforms.u_wireframeScanSpeed = function () {
|
|
140
|
-
return model._debugWireframeScanSpeed ?? 0.0;
|
|
141
|
-
};
|
|
142
|
-
stageUniforms.u_wireframeTime = function () {
|
|
143
|
-
return frameState.time.secondsOfDay;
|
|
144
|
-
};
|
|
145
|
-
stageUniforms.u_wireframeModelMinHeight = function () {
|
|
146
|
-
return model._debugWireframeModelMinHeight ?? 0.0;
|
|
147
|
-
};
|
|
148
|
-
stageUniforms.u_wireframeModelMaxHeight = function () {
|
|
149
|
-
return model._debugWireframeModelMaxHeight ?? 1.0;
|
|
150
|
-
};
|
|
151
|
-
stageUniforms.u_wireframeScanAxis = function () {
|
|
152
|
-
return model._debugWireframeScanAxis ?? new Cartesian3(0, 0, 1);
|
|
153
|
-
};
|
|
154
|
-
stageUniforms.u_wireframeScanMin = function () {
|
|
155
|
-
return model._debugWireframeScanMin ?? 0.0;
|
|
156
|
-
};
|
|
157
|
-
stageUniforms.u_wireframeScanMax = function () {
|
|
158
|
-
return model._debugWireframeScanMax ?? 1.0;
|
|
159
|
-
};
|
|
160
115
|
|
|
161
|
-
|
|
162
|
-
|
|
116
|
+
if (scanlineEnabled) {
|
|
117
|
+
stageUniforms.u_wireframeScanSpeed = function () {
|
|
118
|
+
return model._debugWireframeScanSpeed ?? 0.0;
|
|
119
|
+
};
|
|
120
|
+
stageUniforms.u_wireframeTime = function () {
|
|
121
|
+
return frameState.time.secondsOfDay;
|
|
122
|
+
};
|
|
123
|
+
stageUniforms.u_wireframeScanAxis = function () {
|
|
124
|
+
return model._debugWireframeScanAxis ?? defaultScanAxis;
|
|
125
|
+
};
|
|
126
|
+
stageUniforms.u_wireframeScanMin = function () {
|
|
127
|
+
return model._debugWireframeScanMin ?? 0.0;
|
|
128
|
+
};
|
|
129
|
+
stageUniforms.u_wireframeScanMax = function () {
|
|
130
|
+
return model._debugWireframeScanMax ?? 1.0;
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// Enable alpha blending when fillAlpha < 1.0 or fillColor alpha < 1.0
|
|
135
|
+
const fillAlphaValue = defined(model._debugWireframeFillColor)
|
|
136
|
+
? model._debugWireframeFillColor.alpha
|
|
137
|
+
: (model._debugWireframeFillAlpha ?? 1.0);
|
|
138
|
+
if (fillAlphaValue < 1.0) {
|
|
163
139
|
renderResources.alphaOptions.pass = Pass.TRANSLUCENT;
|
|
164
140
|
}
|
|
165
141
|
|
|
@@ -168,6 +144,7 @@ BarycentricWireframePipelineStage.process = function (
|
|
|
168
144
|
primitive,
|
|
169
145
|
barycentricAttributeLocation,
|
|
170
146
|
frameState,
|
|
147
|
+
model.debugWireframeOverlay,
|
|
171
148
|
);
|
|
172
149
|
};
|
|
173
150
|
|
|
@@ -273,6 +250,7 @@ function deindexGeometryAndAddBarycentric(
|
|
|
273
250
|
primitive,
|
|
274
251
|
barycentricAttributeLocation,
|
|
275
252
|
frameState,
|
|
253
|
+
overlay,
|
|
276
254
|
) {
|
|
277
255
|
const model = renderResources.model;
|
|
278
256
|
const shaderBuilder = renderResources.shaderBuilder;
|
|
@@ -337,18 +315,24 @@ function deindexGeometryAndAddBarycentric(
|
|
|
337
315
|
let attributeIndex;
|
|
338
316
|
if (semantic === VertexAttributeSemantic.POSITION) {
|
|
339
317
|
attributeIndex = shaderBuilder.attributeLocations.position;
|
|
340
|
-
} else if (
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
318
|
+
} else if (overlay) {
|
|
319
|
+
// Only deindex non-position attributes in overlay mode
|
|
320
|
+
// (overlay needs original material for blending)
|
|
321
|
+
if (semantic === VertexAttributeSemantic.NORMAL) {
|
|
322
|
+
attributeIndex = shaderBuilder.attributeLocations.normal;
|
|
323
|
+
} else if (semantic === VertexAttributeSemantic.TANGENT) {
|
|
324
|
+
attributeIndex = shaderBuilder.attributeLocations.tangent;
|
|
325
|
+
} else if (semantic === VertexAttributeSemantic.TEXCOORD) {
|
|
326
|
+
attributeIndex = shaderBuilder.attributeLocations["texCoord_" + setIndex];
|
|
327
|
+
} else if (semantic === VertexAttributeSemantic.COLOR) {
|
|
328
|
+
attributeIndex = shaderBuilder.attributeLocations["color_" + setIndex];
|
|
329
|
+
} else if (semantic === VertexAttributeSemantic.JOINTS) {
|
|
330
|
+
attributeIndex = shaderBuilder.attributeLocations["joints_" + setIndex];
|
|
331
|
+
} else if (semantic === VertexAttributeSemantic.WEIGHTS) {
|
|
332
|
+
attributeIndex = shaderBuilder.attributeLocations["weights_" + setIndex];
|
|
333
|
+
} else {
|
|
334
|
+
continue;
|
|
335
|
+
}
|
|
352
336
|
} else {
|
|
353
337
|
continue;
|
|
354
338
|
}
|
|
@@ -421,6 +421,9 @@ function Model(options) {
|
|
|
421
421
|
this._debugWireframeMode = options.debugWireframeMode ?? "lines";
|
|
422
422
|
this._debugWireframeOverlay = options.debugWireframeOverlay ?? false;
|
|
423
423
|
this._debugWireframeFillAlpha = options.debugWireframeFillAlpha ?? 0.2;
|
|
424
|
+
this._debugWireframeFillColor = defined(options.debugWireframeFillColor)
|
|
425
|
+
? Color.clone(options.debugWireframeFillColor)
|
|
426
|
+
: undefined;
|
|
424
427
|
this._debugWireframeColor = Color.clone(Color.WHITE);
|
|
425
428
|
this._wireframeOriginalColor = undefined;
|
|
426
429
|
this._wireframeOriginalColorBlendMode = undefined;
|
|
@@ -2041,14 +2044,9 @@ Model.prototype.showWireframe = function ({
|
|
|
2041
2044
|
? Color.clone(fillColor)
|
|
2042
2045
|
: undefined;
|
|
2043
2046
|
|
|
2044
|
-
if (defined(fillColor)) {
|
|
2045
|
-
const fillColorWithAlpha = Color.clone(fillColor);
|
|
2046
|
-
fillColorWithAlpha.alpha = fillAlpha;
|
|
2047
|
-
this.color = fillColorWithAlpha;
|
|
2048
|
-
this.colorBlendMode = colorBlendMode;
|
|
2049
|
-
} else {
|
|
2047
|
+
if (!defined(fillColor)) {
|
|
2050
2048
|
this.color = this._wireframeOriginalColor;
|
|
2051
|
-
this.colorBlendMode = ColorBlendMode.HIGHLIGHT;
|
|
2049
|
+
this.colorBlendMode = this._wireframeOriginalColorBlendMode ?? ColorBlendMode.HIGHLIGHT;
|
|
2052
2050
|
}
|
|
2053
2051
|
|
|
2054
2052
|
this._debugWireframeGlow = 0.0;
|
|
@@ -2056,8 +2054,6 @@ Model.prototype.showWireframe = function ({
|
|
|
2056
2054
|
this._debugWireframeScanAxis = new Cartesian3(0, 0, 1);
|
|
2057
2055
|
this._debugWireframeScanMin = 0.0;
|
|
2058
2056
|
this._debugWireframeScanMax = 1.0;
|
|
2059
|
-
this._debugWireframeModelMinHeight = undefined;
|
|
2060
|
-
this._debugWireframeModelMaxHeight = undefined;
|
|
2061
2057
|
|
|
2062
2058
|
if (defined(effects)) {
|
|
2063
2059
|
if (defined(effects.glow) && effects.glow.enabled) {
|
|
@@ -2069,7 +2065,7 @@ Model.prototype.showWireframe = function ({
|
|
|
2069
2065
|
this._debugWireframeScanAxis = new Cartesian3(
|
|
2070
2066
|
direction === "x" ? 1 : 0,
|
|
2071
2067
|
direction === "y" ? 1 : 0,
|
|
2072
|
-
direction === "z" ? 1 : 0
|
|
2068
|
+
direction === "z" ? 1 : 0,
|
|
2073
2069
|
);
|
|
2074
2070
|
const bs = this.boundingSphere;
|
|
2075
2071
|
if (defined(bs)) {
|
|
@@ -2084,10 +2080,6 @@ Model.prototype.showWireframe = function ({
|
|
|
2084
2080
|
this._debugWireframeScanMin = centerHeight - bs.radius;
|
|
2085
2081
|
this._debugWireframeScanMax = centerHeight + bs.radius;
|
|
2086
2082
|
}
|
|
2087
|
-
// Compute model height range from bounding sphere for scanline
|
|
2088
|
-
const centerHeight = Cartesian3.magnitude(bs.center);
|
|
2089
|
-
this._debugWireframeModelMinHeight = centerHeight - bs.radius;
|
|
2090
|
-
this._debugWireframeModelMaxHeight = centerHeight + bs.radius;
|
|
2091
2083
|
}
|
|
2092
2084
|
}
|
|
2093
2085
|
}
|
|
@@ -272,27 +272,22 @@ Model3DTileContent.prototype.update = function (tileset, frameState) {
|
|
|
272
272
|
model.splitDirection = tileset.splitDirection;
|
|
273
273
|
model.debugWireframe = tileset.debugWireframe;
|
|
274
274
|
model.debugWireframeColor = tileset._debugWireframeColor;
|
|
275
|
+
model._debugWireframeFillColor = tileset._debugWireframeFillColor;
|
|
275
276
|
model.debugWireframeFillAlpha = tileset._debugWireframeFillAlpha;
|
|
276
277
|
model.debugWireframeLineWidth = tileset.debugWireframeLineWidth;
|
|
277
278
|
model.debugWireframeMode = tileset.debugWireframeMode;
|
|
278
279
|
model.debugWireframeOverlay = tileset.debugWireframeOverlay;
|
|
279
280
|
model._debugWireframeGlow = tileset._debugWireframeGlow ?? 0.0;
|
|
280
281
|
model._debugWireframeScanSpeed = tileset._debugWireframeScanSpeed ?? 0.0;
|
|
281
|
-
model._debugWireframeScanAxis =
|
|
282
|
+
model._debugWireframeScanAxis =
|
|
283
|
+
tileset._debugWireframeScanAxis ?? new Cartesian3(0, 0, 1);
|
|
282
284
|
model._debugWireframeScanMin = tileset._debugWireframeScanMin ?? 0.0;
|
|
283
285
|
model._debugWireframeScanMax = tileset._debugWireframeScanMax ?? 1.0;
|
|
284
|
-
model._debugWireframeModelMinHeight = tileset._debugWireframeModelMinHeight ?? 0.0;
|
|
285
|
-
model._debugWireframeModelMaxHeight = tileset._debugWireframeModelMaxHeight ?? 1.0;
|
|
286
286
|
model.showOutline = tileset.showOutline;
|
|
287
287
|
model.outlineColor = tileset.outlineColor;
|
|
288
288
|
model.pointCloudShading = tileset.pointCloudShading;
|
|
289
289
|
|
|
290
|
-
if (tileset.debugWireframe
|
|
291
|
-
const fillColor = Color.clone(tileset._debugWireframeFillColor);
|
|
292
|
-
fillColor.alpha = tileset._debugWireframeFillAlpha;
|
|
293
|
-
model.color = fillColor;
|
|
294
|
-
model.colorBlendMode = tileset.colorBlendMode;
|
|
295
|
-
} else if (!tileset.debugWireframe) {
|
|
290
|
+
if (!tileset.debugWireframe) {
|
|
296
291
|
model.color = undefined;
|
|
297
292
|
}
|
|
298
293
|
|
|
@@ -561,17 +556,17 @@ function makeModelOptions(tileset, tile, content, additionalOptions) {
|
|
|
561
556
|
enableDebugWireframe: tileset._enableDebugWireframe,
|
|
562
557
|
debugWireframe: tileset.debugWireframe,
|
|
563
558
|
debugWireframeColor: tileset._debugWireframeColor,
|
|
559
|
+
debugWireframeFillColor: tileset._debugWireframeFillColor,
|
|
564
560
|
debugWireframeFillAlpha: tileset._debugWireframeFillAlpha,
|
|
565
561
|
debugWireframeLineWidth: tileset.debugWireframeLineWidth,
|
|
566
562
|
debugWireframeMode: tileset.debugWireframeMode,
|
|
567
563
|
debugWireframeOverlay: tileset.debugWireframeOverlay,
|
|
568
564
|
_debugWireframeGlow: tileset._debugWireframeGlow ?? 0.0,
|
|
569
565
|
_debugWireframeScanSpeed: tileset._debugWireframeScanSpeed ?? 0.0,
|
|
570
|
-
_debugWireframeScanAxis:
|
|
566
|
+
_debugWireframeScanAxis:
|
|
567
|
+
tileset._debugWireframeScanAxis ?? new Cartesian3(0, 0, 1),
|
|
571
568
|
_debugWireframeScanMin: tileset._debugWireframeScanMin ?? 0.0,
|
|
572
569
|
_debugWireframeScanMax: tileset._debugWireframeScanMax ?? 1.0,
|
|
573
|
-
_debugWireframeModelMinHeight: tileset._debugWireframeModelMinHeight ?? 0.0,
|
|
574
|
-
_debugWireframeModelMaxHeight: tileset._debugWireframeModelMaxHeight ?? 1.0,
|
|
575
570
|
projectTo2D: tileset._projectTo2D,
|
|
576
571
|
enablePick: tileset._enablePick,
|
|
577
572
|
enableShowOutline: tileset._enableShowOutline,
|
|
@@ -69,6 +69,11 @@ void main()
|
|
|
69
69
|
customShaderStage(material, attributes, featureIds, metadata, metadataClass, metadataStatistics);
|
|
70
70
|
#endif
|
|
71
71
|
|
|
72
|
+
#ifdef HAS_WIREFRAME_FILL_COLOR
|
|
73
|
+
material.diffuse = u_wireframeFillColor.rgb;
|
|
74
|
+
material.alpha = u_wireframeFillColor.a;
|
|
75
|
+
#endif
|
|
76
|
+
|
|
72
77
|
lightingStage(material, attributes);
|
|
73
78
|
|
|
74
79
|
#ifdef HAS_SELECTED_FEATURE_ID
|
|
@@ -139,16 +144,13 @@ void main()
|
|
|
139
144
|
#ifdef WIREFRAME_SCANLINE
|
|
140
145
|
float scanProgress = fract(u_wireframeTime * u_wireframeScanSpeed);
|
|
141
146
|
float scanCoord;
|
|
142
|
-
float scanRange;
|
|
147
|
+
float scanRange = u_wireframeScanMax - u_wireframeScanMin;
|
|
143
148
|
if (u_wireframeScanAxis.z > 0.5) {
|
|
144
149
|
scanCoord = length(v_wireframeWorldPos);
|
|
145
|
-
scanRange = u_wireframeScanMax - u_wireframeScanMin;
|
|
146
150
|
} else if (u_wireframeScanAxis.y > 0.5) {
|
|
147
151
|
scanCoord = v_wireframeWorldPos.z;
|
|
148
|
-
scanRange = u_wireframeScanMax - u_wireframeScanMin;
|
|
149
152
|
} else {
|
|
150
153
|
scanCoord = v_wireframeWorldPos.x;
|
|
151
|
-
scanRange = u_wireframeScanMax - u_wireframeScanMin;
|
|
152
154
|
}
|
|
153
155
|
float scanPlanePos = u_wireframeScanMin + scanProgress * scanRange;
|
|
154
156
|
float scanDist = abs(scanCoord - scanPlanePos);
|
|
@@ -158,12 +160,7 @@ void main()
|
|
|
158
160
|
wireframeColor = mix(wireframeColor, scanlineHighlight, scanGlow);
|
|
159
161
|
#endif
|
|
160
162
|
|
|
161
|
-
float glowFactor =
|
|
162
|
-
if (u_wireframeGlow > 0.0) {
|
|
163
|
-
vec3 glowA3 = smoothstep(vec3(0.0), d * u_wireframeWidth * (1.0 + u_wireframeGlow * 2.0), v_barycentric);
|
|
164
|
-
float glowEdge = min(min(glowA3.x, glowA3.y), glowA3.z);
|
|
165
|
-
glowFactor = (1.0 - glowEdge) * u_wireframeGlow;
|
|
166
|
-
}
|
|
163
|
+
float glowFactor = (1.0 - edge) * u_wireframeGlow;
|
|
167
164
|
|
|
168
165
|
#ifdef WIREFRAME_OVERLAY
|
|
169
166
|
color.rgb = mix(wireframeColor, color.rgb, edge);
|
|
@@ -69,6 +69,11 @@ void main()\n\
|
|
|
69
69
|
#ifdef HAS_CUSTOM_FRAGMENT_SHADER\n\
|
|
70
70
|
customShaderStage(material, attributes, featureIds, metadata, metadataClass, metadataStatistics);\n\
|
|
71
71
|
#endif\n\
|
|
72
|
+
\n\
|
|
73
|
+
#ifdef HAS_WIREFRAME_FILL_COLOR\n\
|
|
74
|
+
material.diffuse = u_wireframeFillColor.rgb;\n\
|
|
75
|
+
material.alpha = u_wireframeFillColor.a;\n\
|
|
76
|
+
#endif\n\
|
|
72
77
|
\n\
|
|
73
78
|
lightingStage(material, attributes);\n\
|
|
74
79
|
\n\
|
|
@@ -140,16 +145,13 @@ void main()\n\
|
|
|
140
145
|
#ifdef WIREFRAME_SCANLINE\n\
|
|
141
146
|
float scanProgress = fract(u_wireframeTime * u_wireframeScanSpeed);\n\
|
|
142
147
|
float scanCoord;\n\
|
|
143
|
-
float scanRange;\n\
|
|
148
|
+
float scanRange = u_wireframeScanMax - u_wireframeScanMin;\n\
|
|
144
149
|
if (u_wireframeScanAxis.z > 0.5) {\n\
|
|
145
150
|
scanCoord = length(v_wireframeWorldPos);\n\
|
|
146
|
-
scanRange = u_wireframeScanMax - u_wireframeScanMin;\n\
|
|
147
151
|
} else if (u_wireframeScanAxis.y > 0.5) {\n\
|
|
148
152
|
scanCoord = v_wireframeWorldPos.z;\n\
|
|
149
|
-
scanRange = u_wireframeScanMax - u_wireframeScanMin;\n\
|
|
150
153
|
} else {\n\
|
|
151
154
|
scanCoord = v_wireframeWorldPos.x;\n\
|
|
152
|
-
scanRange = u_wireframeScanMax - u_wireframeScanMin;\n\
|
|
153
155
|
}\n\
|
|
154
156
|
float scanPlanePos = u_wireframeScanMin + scanProgress * scanRange;\n\
|
|
155
157
|
float scanDist = abs(scanCoord - scanPlanePos);\n\
|
|
@@ -159,12 +161,7 @@ void main()\n\
|
|
|
159
161
|
wireframeColor = mix(wireframeColor, scanlineHighlight, scanGlow);\n\
|
|
160
162
|
#endif\n\
|
|
161
163
|
\n\
|
|
162
|
-
float glowFactor =
|
|
163
|
-
if (u_wireframeGlow > 0.0) {\n\
|
|
164
|
-
vec3 glowA3 = smoothstep(vec3(0.0), d * u_wireframeWidth * (1.0 + u_wireframeGlow * 2.0), v_barycentric);\n\
|
|
165
|
-
float glowEdge = min(min(glowA3.x, glowA3.y), glowA3.z);\n\
|
|
166
|
-
glowFactor = (1.0 - glowEdge) * u_wireframeGlow;\n\
|
|
167
|
-
}\n\
|
|
164
|
+
float glowFactor = (1.0 - edge) * u_wireframeGlow;\n\
|
|
168
165
|
\n\
|
|
169
166
|
#ifdef WIREFRAME_OVERLAY\n\
|
|
170
167
|
color.rgb = mix(wireframeColor, color.rgb, edge);\n\
|
|
@@ -161,8 +161,9 @@ void main()
|
|
|
161
161
|
|
|
162
162
|
#ifdef HAS_BARYCENTRIC_WIREFRAME
|
|
163
163
|
v_barycentric = a_barycentric;
|
|
164
|
+
#ifdef WIREFRAME_SCANLINE
|
|
164
165
|
vec4 _wireframeWorldPos = czm_model * vec4(attributes.positionMC, 1.0);
|
|
165
166
|
v_wireframeWorldPos = _wireframeWorldPos.xyz;
|
|
166
|
-
|
|
167
|
+
#endif
|
|
167
168
|
#endif
|
|
168
169
|
}
|
|
@@ -162,9 +162,10 @@ void main()\n\
|
|
|
162
162
|
\n\
|
|
163
163
|
#ifdef HAS_BARYCENTRIC_WIREFRAME\n\
|
|
164
164
|
v_barycentric = a_barycentric;\n\
|
|
165
|
+
#ifdef WIREFRAME_SCANLINE\n\
|
|
165
166
|
vec4 _wireframeWorldPos = czm_model * vec4(attributes.positionMC, 1.0);\n\
|
|
166
167
|
v_wireframeWorldPos = _wireframeWorldPos.xyz;\n\
|
|
167
|
-
|
|
168
|
+
#endif\n\
|
|
168
169
|
#endif\n\
|
|
169
170
|
}\n\
|
|
170
171
|
";
|
package/index.js
CHANGED
|
@@ -1,4 +1,112 @@
|
|
|
1
1
|
globalThis.CESIUM_VERSION = "0.0.8";
|
|
2
|
+
export { default as BillboardGraphics } from './Source/DataSources/BillboardGraphics.js';
|
|
3
|
+
export { default as BillboardVisualizer } from './Source/DataSources/BillboardVisualizer.js';
|
|
4
|
+
export { default as BoundingSphereState } from './Source/DataSources/BoundingSphereState.js';
|
|
5
|
+
export { default as BoxGeometryUpdater } from './Source/DataSources/BoxGeometryUpdater.js';
|
|
6
|
+
export { default as BoxGraphics } from './Source/DataSources/BoxGraphics.js';
|
|
7
|
+
export { default as CallbackPositionProperty } from './Source/DataSources/CallbackPositionProperty.js';
|
|
8
|
+
export { default as CallbackProperty } from './Source/DataSources/CallbackProperty.js';
|
|
9
|
+
export { default as Cesium3DTilesetGraphics } from './Source/DataSources/Cesium3DTilesetGraphics.js';
|
|
10
|
+
export { default as Cesium3DTilesetVisualizer } from './Source/DataSources/Cesium3DTilesetVisualizer.js';
|
|
11
|
+
export { default as CheckerboardMaterialProperty } from './Source/DataSources/CheckerboardMaterialProperty.js';
|
|
12
|
+
export { default as ColorMaterialProperty } from './Source/DataSources/ColorMaterialProperty.js';
|
|
13
|
+
export { default as CompositeEntityCollection } from './Source/DataSources/CompositeEntityCollection.js';
|
|
14
|
+
export { default as CompositeMaterialProperty } from './Source/DataSources/CompositeMaterialProperty.js';
|
|
15
|
+
export { default as CompositePositionProperty } from './Source/DataSources/CompositePositionProperty.js';
|
|
16
|
+
export { default as CompositeProperty } from './Source/DataSources/CompositeProperty.js';
|
|
17
|
+
export { default as ConstantPositionProperty } from './Source/DataSources/ConstantPositionProperty.js';
|
|
18
|
+
export { default as ConstantProperty } from './Source/DataSources/ConstantProperty.js';
|
|
19
|
+
export { default as CorridorGeometryUpdater } from './Source/DataSources/CorridorGeometryUpdater.js';
|
|
20
|
+
export { default as CorridorGraphics } from './Source/DataSources/CorridorGraphics.js';
|
|
21
|
+
export { default as createMaterialPropertyDescriptor } from './Source/DataSources/createMaterialPropertyDescriptor.js';
|
|
22
|
+
export { default as createPropertyDescriptor } from './Source/DataSources/createPropertyDescriptor.js';
|
|
23
|
+
export { default as createRawPropertyDescriptor } from './Source/DataSources/createRawPropertyDescriptor.js';
|
|
24
|
+
export { default as CustomDataSource } from './Source/DataSources/CustomDataSource.js';
|
|
25
|
+
export { default as CylinderGeometryUpdater } from './Source/DataSources/CylinderGeometryUpdater.js';
|
|
26
|
+
export { default as CylinderGraphics } from './Source/DataSources/CylinderGraphics.js';
|
|
27
|
+
export { default as CzmlDataSource } from './Source/DataSources/CzmlDataSource.js';
|
|
28
|
+
export { default as DataSource } from './Source/DataSources/DataSource.js';
|
|
29
|
+
export { default as DataSourceClock } from './Source/DataSources/DataSourceClock.js';
|
|
30
|
+
export { default as DataSourceCollection } from './Source/DataSources/DataSourceCollection.js';
|
|
31
|
+
export { default as DataSourceDisplay } from './Source/DataSources/DataSourceDisplay.js';
|
|
32
|
+
export { default as DynamicGeometryBatch } from './Source/DataSources/DynamicGeometryBatch.js';
|
|
33
|
+
export { default as DynamicGeometryUpdater } from './Source/DataSources/DynamicGeometryUpdater.js';
|
|
34
|
+
export { default as EllipseGeometryUpdater } from './Source/DataSources/EllipseGeometryUpdater.js';
|
|
35
|
+
export { default as EllipseGraphics } from './Source/DataSources/EllipseGraphics.js';
|
|
36
|
+
export { default as EllipsoidGeometryUpdater } from './Source/DataSources/EllipsoidGeometryUpdater.js';
|
|
37
|
+
export { default as EllipsoidGraphics } from './Source/DataSources/EllipsoidGraphics.js';
|
|
38
|
+
export { default as Entity } from './Source/DataSources/Entity.js';
|
|
39
|
+
export { default as EntityCluster } from './Source/DataSources/EntityCluster.js';
|
|
40
|
+
export { default as EntityCollection } from './Source/DataSources/EntityCollection.js';
|
|
41
|
+
export { default as EntityView } from './Source/DataSources/EntityView.js';
|
|
42
|
+
export { default as exportKml } from './Source/DataSources/exportKml.js';
|
|
43
|
+
export { default as GeoJsonDataSource } from './Source/DataSources/GeoJsonDataSource.js';
|
|
44
|
+
export { default as GeometryUpdater } from './Source/DataSources/GeometryUpdater.js';
|
|
45
|
+
export { default as GeometryUpdaterSet } from './Source/DataSources/GeometryUpdaterSet.js';
|
|
46
|
+
export { default as GeometryVisualizer } from './Source/DataSources/GeometryVisualizer.js';
|
|
47
|
+
export { default as getElement } from './Source/DataSources/getElement.js';
|
|
48
|
+
export { default as GpxDataSource } from './Source/DataSources/GpxDataSource.js';
|
|
49
|
+
export { default as GridMaterialProperty } from './Source/DataSources/GridMaterialProperty.js';
|
|
50
|
+
export { default as GroundGeometryUpdater } from './Source/DataSources/GroundGeometryUpdater.js';
|
|
51
|
+
export { default as heightReferenceOnEntityPropertyChanged } from './Source/DataSources/heightReferenceOnEntityPropertyChanged.js';
|
|
52
|
+
export { default as ImageMaterialProperty } from './Source/DataSources/ImageMaterialProperty.js';
|
|
53
|
+
export { default as KmlCamera } from './Source/DataSources/KmlCamera.js';
|
|
54
|
+
export { default as KmlDataSource } from './Source/DataSources/KmlDataSource.js';
|
|
55
|
+
export { default as KmlLookAt } from './Source/DataSources/KmlLookAt.js';
|
|
56
|
+
export { default as KmlTour } from './Source/DataSources/KmlTour.js';
|
|
57
|
+
export { default as KmlTourFlyTo } from './Source/DataSources/KmlTourFlyTo.js';
|
|
58
|
+
export { default as KmlTourWait } from './Source/DataSources/KmlTourWait.js';
|
|
59
|
+
export { default as LabelGraphics } from './Source/DataSources/LabelGraphics.js';
|
|
60
|
+
export { default as LabelVisualizer } from './Source/DataSources/LabelVisualizer.js';
|
|
61
|
+
export { default as MaterialProperty } from './Source/DataSources/MaterialProperty.js';
|
|
62
|
+
export { default as ModelGraphics } from './Source/DataSources/ModelGraphics.js';
|
|
63
|
+
export { default as ModelVisualizer } from './Source/DataSources/ModelVisualizer.js';
|
|
64
|
+
export { default as NodeTransformationProperty } from './Source/DataSources/NodeTransformationProperty.js';
|
|
65
|
+
export { default as PathGraphics } from './Source/DataSources/PathGraphics.js';
|
|
66
|
+
export { default as PathVisualizer } from './Source/DataSources/PathVisualizer.js';
|
|
67
|
+
export { default as PlaneGeometryUpdater } from './Source/DataSources/PlaneGeometryUpdater.js';
|
|
68
|
+
export { default as PlaneGraphics } from './Source/DataSources/PlaneGraphics.js';
|
|
69
|
+
export { default as PointGraphics } from './Source/DataSources/PointGraphics.js';
|
|
70
|
+
export { default as PointVisualizer } from './Source/DataSources/PointVisualizer.js';
|
|
71
|
+
export { default as PolygonGeometryUpdater } from './Source/DataSources/PolygonGeometryUpdater.js';
|
|
72
|
+
export { default as PolygonGraphics } from './Source/DataSources/PolygonGraphics.js';
|
|
73
|
+
export { default as PolylineArrowMaterialProperty } from './Source/DataSources/PolylineArrowMaterialProperty.js';
|
|
74
|
+
export { default as PolylineDashMaterialProperty } from './Source/DataSources/PolylineDashMaterialProperty.js';
|
|
75
|
+
export { default as PolylineGeometryUpdater } from './Source/DataSources/PolylineGeometryUpdater.js';
|
|
76
|
+
export { default as PolylineGlowMaterialProperty } from './Source/DataSources/PolylineGlowMaterialProperty.js';
|
|
77
|
+
export { default as PolylineGraphics } from './Source/DataSources/PolylineGraphics.js';
|
|
78
|
+
export { default as PolylineOutlineMaterialProperty } from './Source/DataSources/PolylineOutlineMaterialProperty.js';
|
|
79
|
+
export { default as PolylineVisualizer } from './Source/DataSources/PolylineVisualizer.js';
|
|
80
|
+
export { default as PolylineVolumeGeometryUpdater } from './Source/DataSources/PolylineVolumeGeometryUpdater.js';
|
|
81
|
+
export { default as PolylineVolumeGraphics } from './Source/DataSources/PolylineVolumeGraphics.js';
|
|
82
|
+
export { default as PositionProperty } from './Source/DataSources/PositionProperty.js';
|
|
83
|
+
export { default as PositionPropertyArray } from './Source/DataSources/PositionPropertyArray.js';
|
|
84
|
+
export { default as Property } from './Source/DataSources/Property.js';
|
|
85
|
+
export { default as PropertyArray } from './Source/DataSources/PropertyArray.js';
|
|
86
|
+
export { default as PropertyBag } from './Source/DataSources/PropertyBag.js';
|
|
87
|
+
export { default as RectangleGeometryUpdater } from './Source/DataSources/RectangleGeometryUpdater.js';
|
|
88
|
+
export { default as RectangleGraphics } from './Source/DataSources/RectangleGraphics.js';
|
|
89
|
+
export { default as ReferenceProperty } from './Source/DataSources/ReferenceProperty.js';
|
|
90
|
+
export { default as Rotation } from './Source/DataSources/Rotation.js';
|
|
91
|
+
export { default as SampledPositionProperty } from './Source/DataSources/SampledPositionProperty.js';
|
|
92
|
+
export { default as SampledProperty } from './Source/DataSources/SampledProperty.js';
|
|
93
|
+
export { default as ScaledPositionProperty } from './Source/DataSources/ScaledPositionProperty.js';
|
|
94
|
+
export { default as StaticGeometryColorBatch } from './Source/DataSources/StaticGeometryColorBatch.js';
|
|
95
|
+
export { default as StaticGeometryPerMaterialBatch } from './Source/DataSources/StaticGeometryPerMaterialBatch.js';
|
|
96
|
+
export { default as StaticGroundGeometryColorBatch } from './Source/DataSources/StaticGroundGeometryColorBatch.js';
|
|
97
|
+
export { default as StaticGroundGeometryPerMaterialBatch } from './Source/DataSources/StaticGroundGeometryPerMaterialBatch.js';
|
|
98
|
+
export { default as StaticGroundPolylinePerMaterialBatch } from './Source/DataSources/StaticGroundPolylinePerMaterialBatch.js';
|
|
99
|
+
export { default as StaticOutlineGeometryBatch } from './Source/DataSources/StaticOutlineGeometryBatch.js';
|
|
100
|
+
export { default as StripeMaterialProperty } from './Source/DataSources/StripeMaterialProperty.js';
|
|
101
|
+
export { default as StripeOrientation } from './Source/DataSources/StripeOrientation.js';
|
|
102
|
+
export { default as TerrainOffsetProperty } from './Source/DataSources/TerrainOffsetProperty.js';
|
|
103
|
+
export { default as TimeIntervalCollectionPositionProperty } from './Source/DataSources/TimeIntervalCollectionPositionProperty.js';
|
|
104
|
+
export { default as TimeIntervalCollectionProperty } from './Source/DataSources/TimeIntervalCollectionProperty.js';
|
|
105
|
+
export { default as VelocityOrientationProperty } from './Source/DataSources/VelocityOrientationProperty.js';
|
|
106
|
+
export { default as VelocityVectorProperty } from './Source/DataSources/VelocityVectorProperty.js';
|
|
107
|
+
export { default as Visualizer } from './Source/DataSources/Visualizer.js';
|
|
108
|
+
export { default as WallGeometryUpdater } from './Source/DataSources/WallGeometryUpdater.js';
|
|
109
|
+
export { default as WallGraphics } from './Source/DataSources/WallGraphics.js';
|
|
2
110
|
export { default as AutomaticUniforms } from './Source/Renderer/AutomaticUniforms.js';
|
|
3
111
|
export { default as Buffer } from './Source/Renderer/Buffer.js';
|
|
4
112
|
export { default as BufferUsage } from './Source/Renderer/BufferUsage.js';
|
|
@@ -332,115 +440,6 @@ export { default as WindingOrder } from './Source/Core/WindingOrder.js';
|
|
|
332
440
|
export { default as WireframeIndexGenerator } from './Source/Core/WireframeIndexGenerator.js';
|
|
333
441
|
export { default as wrapFunction } from './Source/Core/wrapFunction.js';
|
|
334
442
|
export { default as writeTextToCanvas } from './Source/Core/writeTextToCanvas.js';
|
|
335
|
-
export { default as BillboardGraphics } from './Source/DataSources/BillboardGraphics.js';
|
|
336
|
-
export { default as BillboardVisualizer } from './Source/DataSources/BillboardVisualizer.js';
|
|
337
|
-
export { default as BoundingSphereState } from './Source/DataSources/BoundingSphereState.js';
|
|
338
|
-
export { default as BoxGeometryUpdater } from './Source/DataSources/BoxGeometryUpdater.js';
|
|
339
|
-
export { default as BoxGraphics } from './Source/DataSources/BoxGraphics.js';
|
|
340
|
-
export { default as CallbackPositionProperty } from './Source/DataSources/CallbackPositionProperty.js';
|
|
341
|
-
export { default as CallbackProperty } from './Source/DataSources/CallbackProperty.js';
|
|
342
|
-
export { default as Cesium3DTilesetGraphics } from './Source/DataSources/Cesium3DTilesetGraphics.js';
|
|
343
|
-
export { default as Cesium3DTilesetVisualizer } from './Source/DataSources/Cesium3DTilesetVisualizer.js';
|
|
344
|
-
export { default as CheckerboardMaterialProperty } from './Source/DataSources/CheckerboardMaterialProperty.js';
|
|
345
|
-
export { default as ColorMaterialProperty } from './Source/DataSources/ColorMaterialProperty.js';
|
|
346
|
-
export { default as CompositeEntityCollection } from './Source/DataSources/CompositeEntityCollection.js';
|
|
347
|
-
export { default as CompositeMaterialProperty } from './Source/DataSources/CompositeMaterialProperty.js';
|
|
348
|
-
export { default as CompositePositionProperty } from './Source/DataSources/CompositePositionProperty.js';
|
|
349
|
-
export { default as CompositeProperty } from './Source/DataSources/CompositeProperty.js';
|
|
350
|
-
export { default as ConstantPositionProperty } from './Source/DataSources/ConstantPositionProperty.js';
|
|
351
|
-
export { default as ConstantProperty } from './Source/DataSources/ConstantProperty.js';
|
|
352
|
-
export { default as CorridorGeometryUpdater } from './Source/DataSources/CorridorGeometryUpdater.js';
|
|
353
|
-
export { default as CorridorGraphics } from './Source/DataSources/CorridorGraphics.js';
|
|
354
|
-
export { default as createMaterialPropertyDescriptor } from './Source/DataSources/createMaterialPropertyDescriptor.js';
|
|
355
|
-
export { default as createPropertyDescriptor } from './Source/DataSources/createPropertyDescriptor.js';
|
|
356
|
-
export { default as createRawPropertyDescriptor } from './Source/DataSources/createRawPropertyDescriptor.js';
|
|
357
|
-
export { default as CustomDataSource } from './Source/DataSources/CustomDataSource.js';
|
|
358
|
-
export { default as CylinderGeometryUpdater } from './Source/DataSources/CylinderGeometryUpdater.js';
|
|
359
|
-
export { default as CylinderGraphics } from './Source/DataSources/CylinderGraphics.js';
|
|
360
|
-
export { default as CzmlDataSource } from './Source/DataSources/CzmlDataSource.js';
|
|
361
|
-
export { default as DataSource } from './Source/DataSources/DataSource.js';
|
|
362
|
-
export { default as DataSourceClock } from './Source/DataSources/DataSourceClock.js';
|
|
363
|
-
export { default as DataSourceCollection } from './Source/DataSources/DataSourceCollection.js';
|
|
364
|
-
export { default as DataSourceDisplay } from './Source/DataSources/DataSourceDisplay.js';
|
|
365
|
-
export { default as DynamicGeometryBatch } from './Source/DataSources/DynamicGeometryBatch.js';
|
|
366
|
-
export { default as DynamicGeometryUpdater } from './Source/DataSources/DynamicGeometryUpdater.js';
|
|
367
|
-
export { default as EllipseGeometryUpdater } from './Source/DataSources/EllipseGeometryUpdater.js';
|
|
368
|
-
export { default as EllipseGraphics } from './Source/DataSources/EllipseGraphics.js';
|
|
369
|
-
export { default as EllipsoidGeometryUpdater } from './Source/DataSources/EllipsoidGeometryUpdater.js';
|
|
370
|
-
export { default as EllipsoidGraphics } from './Source/DataSources/EllipsoidGraphics.js';
|
|
371
|
-
export { default as Entity } from './Source/DataSources/Entity.js';
|
|
372
|
-
export { default as EntityCluster } from './Source/DataSources/EntityCluster.js';
|
|
373
|
-
export { default as EntityCollection } from './Source/DataSources/EntityCollection.js';
|
|
374
|
-
export { default as EntityView } from './Source/DataSources/EntityView.js';
|
|
375
|
-
export { default as exportKml } from './Source/DataSources/exportKml.js';
|
|
376
|
-
export { default as GeoJsonDataSource } from './Source/DataSources/GeoJsonDataSource.js';
|
|
377
|
-
export { default as GeometryUpdater } from './Source/DataSources/GeometryUpdater.js';
|
|
378
|
-
export { default as GeometryUpdaterSet } from './Source/DataSources/GeometryUpdaterSet.js';
|
|
379
|
-
export { default as GeometryVisualizer } from './Source/DataSources/GeometryVisualizer.js';
|
|
380
|
-
export { default as getElement } from './Source/DataSources/getElement.js';
|
|
381
|
-
export { default as GpxDataSource } from './Source/DataSources/GpxDataSource.js';
|
|
382
|
-
export { default as GridMaterialProperty } from './Source/DataSources/GridMaterialProperty.js';
|
|
383
|
-
export { default as GroundGeometryUpdater } from './Source/DataSources/GroundGeometryUpdater.js';
|
|
384
|
-
export { default as heightReferenceOnEntityPropertyChanged } from './Source/DataSources/heightReferenceOnEntityPropertyChanged.js';
|
|
385
|
-
export { default as ImageMaterialProperty } from './Source/DataSources/ImageMaterialProperty.js';
|
|
386
|
-
export { default as KmlCamera } from './Source/DataSources/KmlCamera.js';
|
|
387
|
-
export { default as KmlDataSource } from './Source/DataSources/KmlDataSource.js';
|
|
388
|
-
export { default as KmlLookAt } from './Source/DataSources/KmlLookAt.js';
|
|
389
|
-
export { default as KmlTour } from './Source/DataSources/KmlTour.js';
|
|
390
|
-
export { default as KmlTourFlyTo } from './Source/DataSources/KmlTourFlyTo.js';
|
|
391
|
-
export { default as KmlTourWait } from './Source/DataSources/KmlTourWait.js';
|
|
392
|
-
export { default as LabelGraphics } from './Source/DataSources/LabelGraphics.js';
|
|
393
|
-
export { default as LabelVisualizer } from './Source/DataSources/LabelVisualizer.js';
|
|
394
|
-
export { default as MaterialProperty } from './Source/DataSources/MaterialProperty.js';
|
|
395
|
-
export { default as ModelGraphics } from './Source/DataSources/ModelGraphics.js';
|
|
396
|
-
export { default as ModelVisualizer } from './Source/DataSources/ModelVisualizer.js';
|
|
397
|
-
export { default as NodeTransformationProperty } from './Source/DataSources/NodeTransformationProperty.js';
|
|
398
|
-
export { default as PathGraphics } from './Source/DataSources/PathGraphics.js';
|
|
399
|
-
export { default as PathVisualizer } from './Source/DataSources/PathVisualizer.js';
|
|
400
|
-
export { default as PlaneGeometryUpdater } from './Source/DataSources/PlaneGeometryUpdater.js';
|
|
401
|
-
export { default as PlaneGraphics } from './Source/DataSources/PlaneGraphics.js';
|
|
402
|
-
export { default as PointGraphics } from './Source/DataSources/PointGraphics.js';
|
|
403
|
-
export { default as PointVisualizer } from './Source/DataSources/PointVisualizer.js';
|
|
404
|
-
export { default as PolygonGeometryUpdater } from './Source/DataSources/PolygonGeometryUpdater.js';
|
|
405
|
-
export { default as PolygonGraphics } from './Source/DataSources/PolygonGraphics.js';
|
|
406
|
-
export { default as PolylineArrowMaterialProperty } from './Source/DataSources/PolylineArrowMaterialProperty.js';
|
|
407
|
-
export { default as PolylineDashMaterialProperty } from './Source/DataSources/PolylineDashMaterialProperty.js';
|
|
408
|
-
export { default as PolylineGeometryUpdater } from './Source/DataSources/PolylineGeometryUpdater.js';
|
|
409
|
-
export { default as PolylineGlowMaterialProperty } from './Source/DataSources/PolylineGlowMaterialProperty.js';
|
|
410
|
-
export { default as PolylineGraphics } from './Source/DataSources/PolylineGraphics.js';
|
|
411
|
-
export { default as PolylineOutlineMaterialProperty } from './Source/DataSources/PolylineOutlineMaterialProperty.js';
|
|
412
|
-
export { default as PolylineVisualizer } from './Source/DataSources/PolylineVisualizer.js';
|
|
413
|
-
export { default as PolylineVolumeGeometryUpdater } from './Source/DataSources/PolylineVolumeGeometryUpdater.js';
|
|
414
|
-
export { default as PolylineVolumeGraphics } from './Source/DataSources/PolylineVolumeGraphics.js';
|
|
415
|
-
export { default as PositionProperty } from './Source/DataSources/PositionProperty.js';
|
|
416
|
-
export { default as PositionPropertyArray } from './Source/DataSources/PositionPropertyArray.js';
|
|
417
|
-
export { default as Property } from './Source/DataSources/Property.js';
|
|
418
|
-
export { default as PropertyArray } from './Source/DataSources/PropertyArray.js';
|
|
419
|
-
export { default as PropertyBag } from './Source/DataSources/PropertyBag.js';
|
|
420
|
-
export { default as RectangleGeometryUpdater } from './Source/DataSources/RectangleGeometryUpdater.js';
|
|
421
|
-
export { default as RectangleGraphics } from './Source/DataSources/RectangleGraphics.js';
|
|
422
|
-
export { default as ReferenceProperty } from './Source/DataSources/ReferenceProperty.js';
|
|
423
|
-
export { default as Rotation } from './Source/DataSources/Rotation.js';
|
|
424
|
-
export { default as SampledPositionProperty } from './Source/DataSources/SampledPositionProperty.js';
|
|
425
|
-
export { default as SampledProperty } from './Source/DataSources/SampledProperty.js';
|
|
426
|
-
export { default as ScaledPositionProperty } from './Source/DataSources/ScaledPositionProperty.js';
|
|
427
|
-
export { default as StaticGeometryColorBatch } from './Source/DataSources/StaticGeometryColorBatch.js';
|
|
428
|
-
export { default as StaticGeometryPerMaterialBatch } from './Source/DataSources/StaticGeometryPerMaterialBatch.js';
|
|
429
|
-
export { default as StaticGroundGeometryColorBatch } from './Source/DataSources/StaticGroundGeometryColorBatch.js';
|
|
430
|
-
export { default as StaticGroundGeometryPerMaterialBatch } from './Source/DataSources/StaticGroundGeometryPerMaterialBatch.js';
|
|
431
|
-
export { default as StaticGroundPolylinePerMaterialBatch } from './Source/DataSources/StaticGroundPolylinePerMaterialBatch.js';
|
|
432
|
-
export { default as StaticOutlineGeometryBatch } from './Source/DataSources/StaticOutlineGeometryBatch.js';
|
|
433
|
-
export { default as StripeMaterialProperty } from './Source/DataSources/StripeMaterialProperty.js';
|
|
434
|
-
export { default as StripeOrientation } from './Source/DataSources/StripeOrientation.js';
|
|
435
|
-
export { default as TerrainOffsetProperty } from './Source/DataSources/TerrainOffsetProperty.js';
|
|
436
|
-
export { default as TimeIntervalCollectionPositionProperty } from './Source/DataSources/TimeIntervalCollectionPositionProperty.js';
|
|
437
|
-
export { default as TimeIntervalCollectionProperty } from './Source/DataSources/TimeIntervalCollectionProperty.js';
|
|
438
|
-
export { default as VelocityOrientationProperty } from './Source/DataSources/VelocityOrientationProperty.js';
|
|
439
|
-
export { default as VelocityVectorProperty } from './Source/DataSources/VelocityVectorProperty.js';
|
|
440
|
-
export { default as Visualizer } from './Source/DataSources/Visualizer.js';
|
|
441
|
-
export { default as WallGeometryUpdater } from './Source/DataSources/WallGeometryUpdater.js';
|
|
442
|
-
export { default as WallGraphics } from './Source/DataSources/WallGraphics.js';
|
|
443
|
-
export { default as CesiumWidget } from './Source/Widget/CesiumWidget.js';
|
|
444
443
|
export { default as _shadersAdjustTranslucentFS } from './Source/Shaders/AdjustTranslucentFS.js';
|
|
445
444
|
export { default as _shadersAtmosphereCommon } from './Source/Shaders/AtmosphereCommon.js';
|
|
446
445
|
export { default as _shadersBillboardCollectionFS } from './Source/Shaders/BillboardCollectionFS.js';
|
|
@@ -495,6 +494,7 @@ export { default as _shadersVector3DTilePolylinesVS } from './Source/Shaders/Vec
|
|
|
495
494
|
export { default as _shadersVectorTileVS } from './Source/Shaders/VectorTileVS.js';
|
|
496
495
|
export { default as _shadersViewportQuadFS } from './Source/Shaders/ViewportQuadFS.js';
|
|
497
496
|
export { default as _shadersViewportQuadVS } from './Source/Shaders/ViewportQuadVS.js';
|
|
497
|
+
export { default as CesiumWidget } from './Source/Widget/CesiumWidget.js';
|
|
498
498
|
export { default as AlphaMode } from './Source/Scene/AlphaMode.js';
|
|
499
499
|
export { default as Appearance } from './Source/Scene/Appearance.js';
|
|
500
500
|
export { default as ArcGisBaseMapType } from './Source/Scene/ArcGisBaseMapType.js';
|
|
@@ -884,32 +884,6 @@ export { default as _shadersSlopeRampMaterial } from './Source/Shaders/Materials
|
|
|
884
884
|
export { default as _shadersStripeMaterial } from './Source/Shaders/Materials/StripeMaterial.js';
|
|
885
885
|
export { default as _shadersWater } from './Source/Shaders/Materials/Water.js';
|
|
886
886
|
export { default as _shadersWaterMaskMaterial } from './Source/Shaders/Materials/WaterMaskMaterial.js';
|
|
887
|
-
export { default as _shadersAcesTonemappingStage } from './Source/Shaders/PostProcessStages/AcesTonemappingStage.js';
|
|
888
|
-
export { default as _shadersAdditiveBlend } from './Source/Shaders/PostProcessStages/AdditiveBlend.js';
|
|
889
|
-
export { default as _shadersAmbientOcclusionGenerate } from './Source/Shaders/PostProcessStages/AmbientOcclusionGenerate.js';
|
|
890
|
-
export { default as _shadersAmbientOcclusionModulate } from './Source/Shaders/PostProcessStages/AmbientOcclusionModulate.js';
|
|
891
|
-
export { default as _shadersBlackAndWhite } from './Source/Shaders/PostProcessStages/BlackAndWhite.js';
|
|
892
|
-
export { default as _shadersBloomComposite } from './Source/Shaders/PostProcessStages/BloomComposite.js';
|
|
893
|
-
export { default as _shadersBrightness } from './Source/Shaders/PostProcessStages/Brightness.js';
|
|
894
|
-
export { default as _shadersBrightPass } from './Source/Shaders/PostProcessStages/BrightPass.js';
|
|
895
|
-
export { default as _shadersCompositeTranslucentClassification } from './Source/Shaders/PostProcessStages/CompositeTranslucentClassification.js';
|
|
896
|
-
export { default as _shadersContrastBias } from './Source/Shaders/PostProcessStages/ContrastBias.js';
|
|
897
|
-
export { default as _shadersDepthOfField } from './Source/Shaders/PostProcessStages/DepthOfField.js';
|
|
898
|
-
export { default as _shadersDepthView } from './Source/Shaders/PostProcessStages/DepthView.js';
|
|
899
|
-
export { default as _shadersDepthViewPacked } from './Source/Shaders/PostProcessStages/DepthViewPacked.js';
|
|
900
|
-
export { default as _shadersEdgeDetection } from './Source/Shaders/PostProcessStages/EdgeDetection.js';
|
|
901
|
-
export { default as _shadersFilmicTonemapping } from './Source/Shaders/PostProcessStages/FilmicTonemapping.js';
|
|
902
|
-
export { default as _shadersFXAA } from './Source/Shaders/PostProcessStages/FXAA.js';
|
|
903
|
-
export { default as _shadersGaussianBlur1D } from './Source/Shaders/PostProcessStages/GaussianBlur1D.js';
|
|
904
|
-
export { default as _shadersLensFlare } from './Source/Shaders/PostProcessStages/LensFlare.js';
|
|
905
|
-
export { default as _shadersModifiedReinhardTonemapping } from './Source/Shaders/PostProcessStages/ModifiedReinhardTonemapping.js';
|
|
906
|
-
export { default as _shadersNightVision } from './Source/Shaders/PostProcessStages/NightVision.js';
|
|
907
|
-
export { default as _shadersPassThrough } from './Source/Shaders/PostProcessStages/PassThrough.js';
|
|
908
|
-
export { default as _shadersPassThroughDepth } from './Source/Shaders/PostProcessStages/PassThroughDepth.js';
|
|
909
|
-
export { default as _shadersPbrNeutralTonemapping } from './Source/Shaders/PostProcessStages/PbrNeutralTonemapping.js';
|
|
910
|
-
export { default as _shadersPointCloudEyeDomeLighting } from './Source/Shaders/PostProcessStages/PointCloudEyeDomeLighting.js';
|
|
911
|
-
export { default as _shadersReinhardTonemapping } from './Source/Shaders/PostProcessStages/ReinhardTonemapping.js';
|
|
912
|
-
export { default as _shadersSilhouette } from './Source/Shaders/PostProcessStages/Silhouette.js';
|
|
913
887
|
export { default as _shadersAtmosphereStageFS } from './Source/Shaders/Model/AtmosphereStageFS.js';
|
|
914
888
|
export { default as _shadersAtmosphereStageVS } from './Source/Shaders/Model/AtmosphereStageVS.js';
|
|
915
889
|
export { default as _shadersCPUStylingStageFS } from './Source/Shaders/Model/CPUStylingStageFS.js';
|
|
@@ -946,6 +920,32 @@ export { default as _shadersPrimitiveOutlineStageVS } from './Source/Shaders/Mod
|
|
|
946
920
|
export { default as _shadersSelectedFeatureIdStageCommon } from './Source/Shaders/Model/SelectedFeatureIdStageCommon.js';
|
|
947
921
|
export { default as _shadersSkinningStageVS } from './Source/Shaders/Model/SkinningStageVS.js';
|
|
948
922
|
export { default as _shadersVerticalExaggerationStageVS } from './Source/Shaders/Model/VerticalExaggerationStageVS.js';
|
|
923
|
+
export { default as _shadersAcesTonemappingStage } from './Source/Shaders/PostProcessStages/AcesTonemappingStage.js';
|
|
924
|
+
export { default as _shadersAdditiveBlend } from './Source/Shaders/PostProcessStages/AdditiveBlend.js';
|
|
925
|
+
export { default as _shadersAmbientOcclusionGenerate } from './Source/Shaders/PostProcessStages/AmbientOcclusionGenerate.js';
|
|
926
|
+
export { default as _shadersAmbientOcclusionModulate } from './Source/Shaders/PostProcessStages/AmbientOcclusionModulate.js';
|
|
927
|
+
export { default as _shadersBlackAndWhite } from './Source/Shaders/PostProcessStages/BlackAndWhite.js';
|
|
928
|
+
export { default as _shadersBloomComposite } from './Source/Shaders/PostProcessStages/BloomComposite.js';
|
|
929
|
+
export { default as _shadersBrightness } from './Source/Shaders/PostProcessStages/Brightness.js';
|
|
930
|
+
export { default as _shadersBrightPass } from './Source/Shaders/PostProcessStages/BrightPass.js';
|
|
931
|
+
export { default as _shadersCompositeTranslucentClassification } from './Source/Shaders/PostProcessStages/CompositeTranslucentClassification.js';
|
|
932
|
+
export { default as _shadersContrastBias } from './Source/Shaders/PostProcessStages/ContrastBias.js';
|
|
933
|
+
export { default as _shadersDepthOfField } from './Source/Shaders/PostProcessStages/DepthOfField.js';
|
|
934
|
+
export { default as _shadersDepthView } from './Source/Shaders/PostProcessStages/DepthView.js';
|
|
935
|
+
export { default as _shadersDepthViewPacked } from './Source/Shaders/PostProcessStages/DepthViewPacked.js';
|
|
936
|
+
export { default as _shadersEdgeDetection } from './Source/Shaders/PostProcessStages/EdgeDetection.js';
|
|
937
|
+
export { default as _shadersFilmicTonemapping } from './Source/Shaders/PostProcessStages/FilmicTonemapping.js';
|
|
938
|
+
export { default as _shadersFXAA } from './Source/Shaders/PostProcessStages/FXAA.js';
|
|
939
|
+
export { default as _shadersGaussianBlur1D } from './Source/Shaders/PostProcessStages/GaussianBlur1D.js';
|
|
940
|
+
export { default as _shadersLensFlare } from './Source/Shaders/PostProcessStages/LensFlare.js';
|
|
941
|
+
export { default as _shadersModifiedReinhardTonemapping } from './Source/Shaders/PostProcessStages/ModifiedReinhardTonemapping.js';
|
|
942
|
+
export { default as _shadersNightVision } from './Source/Shaders/PostProcessStages/NightVision.js';
|
|
943
|
+
export { default as _shadersPassThrough } from './Source/Shaders/PostProcessStages/PassThrough.js';
|
|
944
|
+
export { default as _shadersPassThroughDepth } from './Source/Shaders/PostProcessStages/PassThroughDepth.js';
|
|
945
|
+
export { default as _shadersPbrNeutralTonemapping } from './Source/Shaders/PostProcessStages/PbrNeutralTonemapping.js';
|
|
946
|
+
export { default as _shadersPointCloudEyeDomeLighting } from './Source/Shaders/PostProcessStages/PointCloudEyeDomeLighting.js';
|
|
947
|
+
export { default as _shadersReinhardTonemapping } from './Source/Shaders/PostProcessStages/ReinhardTonemapping.js';
|
|
948
|
+
export { default as _shadersSilhouette } from './Source/Shaders/PostProcessStages/Silhouette.js';
|
|
949
949
|
export { default as _shadersconvertLocalToBoxUv } from './Source/Shaders/Voxels/convertLocalToBoxUv.js';
|
|
950
950
|
export { default as _shadersconvertLocalToCylinderUv } from './Source/Shaders/Voxels/convertLocalToCylinderUv.js';
|
|
951
951
|
export { default as _shadersconvertLocalToEllipsoidUv } from './Source/Shaders/Voxels/convertLocalToEllipsoidUv.js';
|
|
@@ -1073,14 +1073,6 @@ export { default as UniformType } from './Source/Scene/Model/UniformType.js';
|
|
|
1073
1073
|
export { default as VaryingType } from './Source/Scene/Model/VaryingType.js';
|
|
1074
1074
|
export { default as VerticalExaggerationPipelineStage } from './Source/Scene/Model/VerticalExaggerationPipelineStage.js';
|
|
1075
1075
|
export { default as WireframePipelineStage } from './Source/Scene/Model/WireframePipelineStage.js';
|
|
1076
|
-
export { default as _shadersdepthRangeStruct } from './Source/Shaders/Builtin/Structs/depthRangeStruct.js';
|
|
1077
|
-
export { default as _shadersmaterial } from './Source/Shaders/Builtin/Structs/material.js';
|
|
1078
|
-
export { default as _shadersmaterialInput } from './Source/Shaders/Builtin/Structs/materialInput.js';
|
|
1079
|
-
export { default as _shadersmodelMaterial } from './Source/Shaders/Builtin/Structs/modelMaterial.js';
|
|
1080
|
-
export { default as _shadersmodelVertexOutput } from './Source/Shaders/Builtin/Structs/modelVertexOutput.js';
|
|
1081
|
-
export { default as _shadersray } from './Source/Shaders/Builtin/Structs/ray.js';
|
|
1082
|
-
export { default as _shadersraySegment } from './Source/Shaders/Builtin/Structs/raySegment.js';
|
|
1083
|
-
export { default as _shadersshadowParameters } from './Source/Shaders/Builtin/Structs/shadowParameters.js';
|
|
1084
1076
|
export { default as _shadersdegreesPerRadian } from './Source/Shaders/Builtin/Constants/degreesPerRadian.js';
|
|
1085
1077
|
export { default as _shadersdepthRange } from './Source/Shaders/Builtin/Constants/depthRange.js';
|
|
1086
1078
|
export { default as _shadersepsilon1 } from './Source/Shaders/Builtin/Constants/epsilon1.js';
|
|
@@ -1121,6 +1113,14 @@ export { default as _shaderssolarRadius } from './Source/Shaders/Builtin/Constan
|
|
|
1121
1113
|
export { default as _shadersthreePiOver2 } from './Source/Shaders/Builtin/Constants/threePiOver2.js';
|
|
1122
1114
|
export { default as _shaderstwoPi } from './Source/Shaders/Builtin/Constants/twoPi.js';
|
|
1123
1115
|
export { default as _shaderswebMercatorMaxLatitude } from './Source/Shaders/Builtin/Constants/webMercatorMaxLatitude.js';
|
|
1116
|
+
export { default as _shadersdepthRangeStruct } from './Source/Shaders/Builtin/Structs/depthRangeStruct.js';
|
|
1117
|
+
export { default as _shadersmaterial } from './Source/Shaders/Builtin/Structs/material.js';
|
|
1118
|
+
export { default as _shadersmaterialInput } from './Source/Shaders/Builtin/Structs/materialInput.js';
|
|
1119
|
+
export { default as _shadersmodelMaterial } from './Source/Shaders/Builtin/Structs/modelMaterial.js';
|
|
1120
|
+
export { default as _shadersmodelVertexOutput } from './Source/Shaders/Builtin/Structs/modelVertexOutput.js';
|
|
1121
|
+
export { default as _shadersray } from './Source/Shaders/Builtin/Structs/ray.js';
|
|
1122
|
+
export { default as _shadersraySegment } from './Source/Shaders/Builtin/Structs/raySegment.js';
|
|
1123
|
+
export { default as _shadersshadowParameters } from './Source/Shaders/Builtin/Structs/shadowParameters.js';
|
|
1124
1124
|
export { default as _shadersacesTonemapping } from './Source/Shaders/Builtin/Functions/acesTonemapping.js';
|
|
1125
1125
|
export { default as _shadersalphaWeight } from './Source/Shaders/Builtin/Functions/alphaWeight.js';
|
|
1126
1126
|
export { default as _shadersantialias } from './Source/Shaders/Builtin/Functions/antialias.js';
|