Class ImageMaterial

Image materials using 2D textures to display the earth, raster tiles, etc.

Hierarchy

Constructors

Properties

engine: Engine
name: string

Name.

shader: Shader

Shader used by the material.

shaderData: ShaderData = ...

Shader data.

texture2d: Texture2D

The texture used by the image material.

_sampleprop: ShaderProperty = ...

The address of the texture sampler in the shader.

Methods

  • Load texture image according to url.

    Returns

    Promise

    Parameters

    • url: string

      Texture image url.

    Returns Promise<HTMLImageElement>

Generated using TypeDoc