playcanvas
Version:
Open-source WebGL/WebGPU 3D engine for the web
21 lines (20 loc) • 457 B
JavaScript
class BakeMeshNode {
constructor(node, meshInstances = null) {
this.node = node;
this.component = node.render || node.model;
meshInstances = meshInstances || this.component.meshInstances;
this.store();
this.meshInstances = meshInstances;
this.bounds = null;
this.renderTargets = [];
}
store() {
this.castShadows = this.component.castShadows;
}
restore() {
this.component.castShadows = this.castShadows;
}
}
export {
BakeMeshNode
};