Material

Source: Material.ts:12


Constructor

new Material(segment: Segment, layer: Layer): Material

Parameters


Instance Methods

_createTexture()

The own ready texture is re-uploaded with texSubImage2D instead of creating a new one. It works while the image size stays the same, which is always true for tiles. After textureNotExists() the material is ready too, but it may hold a parent or default texture, which must not be overwritten.