lingo3d
Version:
Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor
13 lines • 511 B
JavaScript
import { CM2M } from "../../globals";
import createInternalSystem from "../utils/createInternalSystem";
export const configAreaLightSystem = createInternalSystem("configAreaLightSystem", {
effect: (self) => {
const { $light } = self;
if (!$light)
return;
$light.width = self.width * self.scaleX * CM2M;
$light.height = self.height * self.scaleY * CM2M;
$light.color.set(self.color ?? "#ffffff");
}
});
//# sourceMappingURL=configAreaLightSystem.js.map