UNPKG

@giro3d/giro3d

Version:

A JS/WebGL framework for 3D geospatial data visualization

14 lines (10 loc) 289 B
import { Texture } from 'three'; export default class EmptyTexture extends Texture { readonly isEmptyTexture = true; constructor() { super(); } } export function isEmptyTexture(obj: unknown): obj is EmptyTexture { return (obj as EmptyTexture)?.isEmptyTexture; }