RasterMaterial
RasterMaterial holds the render options for a raster layer’s imagery. It is set via the raster key. All fetch/tiling config (zoom range, TMS, …) lives on the referenced raster-tile source, not here.
Properties
Section titled “Properties”Type: boolean | undefined
Description: Whether to show the raster imagery.
{ raster: { show: true } }Type: Color
Description: Tint color applied to the raster imagery, as a Color instance.
import { Color } from "@navaramap/three";
{ raster: { color: new Color().setHex(0xffffff) } }opacity
Section titled “opacity”Type: number | undefined
Description: Opacity of the raster imagery, from 0.0 to 1.0.
{ raster: { opacity: 0.8 } }showBoundingBox
Section titled “showBoundingBox”Type: boolean | undefined
Description: Whether to show per-tile bounding boxes. Used for debugging.
{ raster: { showBoundingBox: true } }Related Resources
Section titled “Related Resources”- Raster Layer — how to use this material
- Raster Tile Source — the imagery source (URL, zoom, TMS)