/*
 * 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;
}
