Class PanoramaTileMaterial

Hierarchy

  • Material
    • PanoramaTileMaterial

Accessors

  • get cursorPosition(): Cartesian3
  • The position of the cursor in the panorama tile. Internal API to render the depth cursor. (-1, -1, -1) means no data is available. It should be a valid position in the panorama tiles cartesian coordinate system, scaled by the normalized depth.

    Returns Cartesian3

  • set cursorPosition(value): void
  • Parameters

    • value: Cartesian3

    Returns void

Constructors

Methods

  • Destroys the WebGL resources held by this object. Destroying an object allows for deterministic release of WebGL resources, instead of relying on the garbage collector to destroy this object.

    Once an object is destroyed, it should not be used; calling any function other than isDestroyed will result in a DeveloperError exception. Therefore, assign the return value (undefined) to the object as done in the example.

    Returns void

    material = material && material.destroy();
    
  • Returns true if this object was destroyed; otherwise, false.

    If this object was destroyed, it should not be used; calling any function other than isDestroyed will result in a DeveloperError exception.

    Returns boolean

    True if this object was destroyed; otherwise, false.

  • Gets whether or not this material is translucent.

    Returns boolean

    true if this material is translucent, false otherwise.

  • Creates a new material using an existing material type.

    Shorthand for: new Material({fabric : {type : type}});

    Parameters

    • type: string

      The base material type.

    • Optionaluniforms: any

      Overrides for the default uniforms.

    Returns Material

    New material object.

    const material = Cesium.Material.fromType('Color', {
    color: new Cesium.Color(1.0, 0.0, 0.0, 1.0)
    });

Properties

materials: any

Maps sub-material names to Material objects.

shaderSource: string

The glsl shader source for this material.

tileCoordinate: PanoramaTileCoordinate
translucent: boolean | ((...params: any[]) => any)

When true or a function that returns true, the geometry is expected to appear translucent.

type: string

The material type. Can be an existing type or a new type. If no type is specified in fabric, type is a GUID.

The uniforms used by the panorama tile material. These are not intended to be modified directly but rather through the provided properties.

AlphaMapType: string

Gets the name of the alpha map material.

AspectRampMaterialType: string

Gets the name of the aspect ramp material.

BumpMapType: string

Gets the name of the bump map material.

CheckerboardType: string

Gets the name of the checkerboard material.

ColorType: string

Gets the name of the color material.

DefaultCubeMapId: string

Gets or sets the default cube map texture uniform value.

DefaultImageId: string

Gets or sets the default texture uniform value.

DiffuseMapType: string

Gets the name of the diffuce map material.

DotType: string

Gets the name of the dot material.

ElevationBandType: string

Gets the name of the elevation band material.

ElevationContourType: string

Gets the name of the elevation contour material.

ElevationRampType: string

Gets the name of the elevation contour material.

EmissionMapType: string

Gets the name of the emmision map material.

FadeType: string

Gets the name of the fade material.

GridType: string

Gets the name of the grid material.

ImageType: string

Gets the name of the image material.

NormalMapType: string

Gets the name of the normal map material.

PolylineArrowType: string

Gets the name of the polyline arrow material.

PolylineDashType: string

Gets the name of the polyline glow material.

PolylineGlowType: string

Gets the name of the polyline glow material.

PolylineOutlineType: string

Gets the name of the polyline outline material.

RimLightingType: string

Gets the name of the rim lighting material.

SlopeRampMaterialType: string

Gets the name of the slope ramp material.

SpecularMapType: string

Gets the name of the specular map material.

StripeType: string

Gets the name of the stripe material.

WaterMaskType: string

Gets the name of the water mask material.

WaterType: string

Gets the name of the water material.