UNPKG

polygonjs-engine

Version:

node-based webgl 3D engine https://polygonjs.com

19 lines (18 loc) 392 B
import {TypedContainer} from "./_Base"; export class MaterialContainer extends TypedContainer { set_content(content) { super.set_content(content); } set_material(material) { if (this._content != null) { this._content.dispose(); } this.set_content(material); } has_material() { return this.has_content(); } material() { return this.content(); } }