UNPKG

lingo3d

Version:

Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor

24 lines 870 B
import { addOutline, deleteOutline } from "../../engine/renderLoop/effectComposer/outlineEffect"; import { createLoadedEffectSystem } from "../utils/createLoadedEffectSystem"; export const configOutlineSystem = createLoadedEffectSystem("configOutlineSystem", { effect: (self) => { if (!self.outline) return false; if ("findAllMeshes" in self) { const children = self.findAllMeshes(); for (const child of children) addOutline(child.object3d); } else addOutline(self.object3d); }, cleanup: (self) => { if ("findAllMeshes" in self) { for (const child of self.findAllMeshes()) deleteOutline(child.object3d); } else deleteOutline(self.object3d); } }); //# sourceMappingURL=configOutlineSystem.js.map