UNPKG

mylingo3d

Version:

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

28 lines 857 B
import { getSkyboxStack, pullSkyboxStack, pushSkyboxStack, setSkyboxStack } from "../states/useSkyboxStack"; import { skyboxDefaults, skyboxSchema } from "../interface/ISkybox"; import EventLoopItem from "../api/core/EventLoopItem"; export default class Skybox extends EventLoopItem { static componentName = "skybox"; static defaults = skyboxDefaults; static schema = skyboxSchema; constructor() { super(); pushSkyboxStack(this); } dispose() { if (this.done) return this; super.dispose(); pullSkyboxStack(this); return this; } _texture; get texture() { return this._texture; } set texture(value) { this._texture = value; setSkyboxStack([...getSkyboxStack()]); } } //# sourceMappingURL=Skybox.js.map