@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
13 lines (11 loc) • 319 B
JavaScript
import { threeMakeLight } from "./threeMakeLight.js";
/**
*
* @param {Light} component
* @param {ThreeLightCache} cache
*/
export function threeEnsureLightObject(component, cache) {
if (component.__threeObject === null) {
component.__threeObject = threeMakeLight(component, cache);
}
}