UNPKG

@blockv/threejs-to-v3d

Version:

Converts any format supported by ThreeJS to V3D.

24 lines (15 loc) 439 B
// // This class replaces ThreeJS's loader class, to make it work on Node. var THREE = require("three"); module.exports = class NodeTextureLoader { load(url, onLoad, onProgress, onError) { // console.log("Wanting to load " + url); // Create texture var tex = new THREE.Texture(); tex.path = url; return tex; } setPath(p) { // console.log("Setting path to " + p); } }