Files
deep-engine-demo/packages/three-is/src/lights/isSpotLight.ts
T
2026-04-19 18:46:28 +08:00

9 lines
205 B
TypeScript

import * as THREE from "three/webgpu";
import {get} from "lodash-es";
export const isSpotLight = (value: unknown): value is THREE.SpotLight => {
return get(value, 'isSpotLight') === true;
}