@bezlepkin/nativescript-ar
Version:
NativeScript Augmented Reality plugin. ARKit on iOS and (with the help of Sceneform) ARCore on Android.
19 lines (18 loc) • 730 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ARCommonGeometryNode = void 0;
const arcommon_1 = require("./arcommon");
const armaterialfactory_1 = require("./armaterialfactory");
class ARCommonGeometryNode extends arcommon_1.ARCommonNode {
constructor(options, node) {
super(options, node);
if (options.materials) {
let material = options.materials[0];
armaterialfactory_1.ARMaterialFactory.applyMaterial(node, material);
}
}
setMaterials(materials) {
armaterialfactory_1.ARMaterialFactory.applyMaterial(this.android, materials[0]).catch((e) => console.log(e));
}
}
exports.ARCommonGeometryNode = ARCommonGeometryNode;