This commit is contained in:
2021-05-20 07:47:03 -07:00
parent e2274ea8bf
commit 3a867f9ad6
12 changed files with 434 additions and 4 deletions

View File

@ -6,13 +6,13 @@
const fs = require('fs');
const path = require('path');
const MODEL_NAME = 'Poker Table';
const MODEL_NAME = 'Poker Chip';
const FLIP_TEXTURE_Y = true;
let rawVertices = [];
let faces = [];
let coordinates = [];
const filePath = path.join(__dirname, 'model.obj');
const filePath = path.join(__dirname, '..', '..', 'assets', 'models', 'Chip Single', 'Single Chip.obj');
const data = fs.readFileSync(filePath, 'utf-8');
const scale = 0.1;