CubeMapPanorama
A Panorama that displays imagery in cube map format in a scene.
This is only supported in 3D. The cube map panorama is faded out when morphing to 2D or Columbus view. The size of the cube map panorama must not exceed Scene.maximumSkyBoxSize.
const modelMatrix = Matrix4.getMatrix3(
Transforms.localFrameToFixedFrameGenerator("north", "down")(
Cartesian3.fromDegrees(longitude, latitude, height),
Ellipsoid.default
),
new Matrix3()
);
scene.primitives.add(new CubeMapPanorama({
sources : {
positiveX : 'cubemap_px.png',
negativeX : 'cubemap_nx.png',
positiveY : 'cubemap_py.png',
negativeY : 'cubemap_ny.png',
positiveZ : 'cubemap_pz.png',
negativeZ : 'cubemap_nz.png'
}
transform: modelMatrix,
}));Content copied to clipboard
See also
Types
Link copied to clipboard
interface ConstructorOptions
Initialization options for the CubeMapPanorama constructor
Functions
Link copied to clipboard
Returns true if this object was destroyed; otherwise, false.
Link copied to clipboard
Called when Viewer or CesiumWidget render the scene to get the draw commands needed to render this primitive.