mars3d-cesium 1.92.4 → 1.92.5
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/Cesium/Cesium.d.ts
CHANGED
|
@@ -34725,8 +34725,8 @@ export class Model {
|
|
|
34725
34725
|
Local reference frames can be used by providing a different transformation matrix, like that returned
|
|
34726
34726
|
by {@link Transforms.eastNorthUpToFixedFrame}.
|
|
34727
34727
|
* @example
|
|
34728
|
-
* const origin =
|
|
34729
|
-
m.modelMatrix =
|
|
34728
|
+
* const origin = Cartesian3.fromDegrees(-95.0, 40.0, 200000.0);
|
|
34729
|
+
m.modelMatrix = Transforms.eastNorthUpToFixedFrame(origin);
|
|
34730
34730
|
*/
|
|
34731
34731
|
modelMatrix: Matrix4;
|
|
34732
34732
|
/**
|
|
@@ -34831,7 +34831,7 @@ export class Model {
|
|
|
34831
34831
|
account glTF animations and skins nor does it take into account {@link Model#minimumPixelSize}.
|
|
34832
34832
|
* @example
|
|
34833
34833
|
* // Center in WGS84 coordinates
|
|
34834
|
-
const center =
|
|
34834
|
+
const center = Matrix4.multiplyByPoint(model.modelMatrix, model.boundingSphere.center, new Cartesian3());
|
|
34835
34835
|
*/
|
|
34836
34836
|
readonly boundingSphere: BoundingSphere;
|
|
34837
34837
|
/**
|
|
@@ -34885,7 +34885,7 @@ export class Model {
|
|
|
34885
34885
|
/**
|
|
34886
34886
|
* The light color when shading the model. When <code>undefined</code> the scene's light color is used instead.
|
|
34887
34887
|
<p>
|
|
34888
|
-
For example, disabling additional light sources by setting <code>model.imageBasedLightingFactor = new
|
|
34888
|
+
For example, disabling additional light sources by setting <code>model.imageBasedLightingFactor = new Cartesian2(0.0, 0.0)</code> will make the
|
|
34889
34889
|
model much darker. Here, increasing the intensity of the light source will make the model brighter.
|
|
34890
34890
|
</p>
|
|
34891
34891
|
*/
|
|
@@ -34978,15 +34978,15 @@ export class Model {
|
|
|
34978
34978
|
</p>
|
|
34979
34979
|
* @example
|
|
34980
34980
|
* // Example 1. Create a model from a glTF asset
|
|
34981
|
-
const model = scene.primitives.add(
|
|
34981
|
+
const model = scene.primitives.add(Model.fromGltf({
|
|
34982
34982
|
url : './duck/duck.gltf'
|
|
34983
34983
|
}));
|
|
34984
34984
|
* @example
|
|
34985
34985
|
* // Example 2. Create model and provide all properties and events
|
|
34986
|
-
const origin =
|
|
34987
|
-
const modelMatrix =
|
|
34986
|
+
const origin = Cartesian3.fromDegrees(-95.0, 40.0, 200000.0);
|
|
34987
|
+
const modelMatrix = Transforms.eastNorthUpToFixedFrame(origin);
|
|
34988
34988
|
|
|
34989
|
-
const model = scene.primitives.add(
|
|
34989
|
+
const model = scene.primitives.add(Model.fromGltf({
|
|
34990
34990
|
url : './duck/duck.gltf',
|
|
34991
34991
|
show : true, // default
|
|
34992
34992
|
modelMatrix : modelMatrix,
|
|
@@ -35083,7 +35083,7 @@ export class Model {
|
|
|
35083
35083
|
* @example
|
|
35084
35084
|
* // Apply non-uniform scale to node LOD3sp
|
|
35085
35085
|
const node = model.getNode('LOD3sp');
|
|
35086
|
-
node.matrix =
|
|
35086
|
+
node.matrix = Matrix4.fromScale(new Cartesian3(5.0, 1.0, 1.0), node.matrix);
|
|
35087
35087
|
* @param name - The glTF name of the node.
|
|
35088
35088
|
* @returns The node or <code>undefined</code> if no node with <code>name</code> exists.
|
|
35089
35089
|
*/
|