UNPKG

lingo3d

Version:

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

24 lines 938 B
import { addSelectiveBloom, deleteSelectiveBloom } from "../../engine/renderLoop/effectComposer/selectiveBloomEffect"; import { createLoadedEffectSystem } from "../utils/createLoadedEffectSystem"; export const configSelectiveBloomSystem = createLoadedEffectSystem("configSelectiveBloomSystem", { effect: (self) => { if (!self.bloom) return false; if ("findAllMeshes" in self) { const children = self.findAllMeshes(); for (const child of children) addSelectiveBloom(child.object3d); } else addSelectiveBloom(self.object3d); }, cleanup: (self) => { if ("findAllMeshes" in self) { for (const child of self.findAllMeshes()) deleteSelectiveBloom(child.object3d); } else deleteSelectiveBloom(self.object3d); } }); //# sourceMappingURL=configSelectiveBloomSystem.js.map