@giro3d/giro3d
Version:
A JS/WebGL framework for 3D geospatial data visualization
20 lines (15 loc) • 424 B
text/typescript
/*
* Copyright (c) 2015-2018, IGN France.
* Copyright (c) 2018-2026, Giro3D team.
* SPDX-License-Identifier: MIT
*/
import { Texture } from 'three';
export default class EmptyTexture extends Texture {
public readonly isEmptyTexture = true;
public constructor() {
super();
}
}
export function isEmptyTexture(obj: unknown): obj is EmptyTexture {
return (obj as EmptyTexture)?.isEmptyTexture;
}