From 96286ee9ea7760cf0ed1ccbc344fe9972fb8bab0 Mon Sep 17 00:00:00 2001 From: yushijinhun Date: Fri, 17 Aug 2018 11:55:46 +0800 Subject: [PATCH] Remove some comments --- src/model.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/model.ts b/src/model.ts index e4efbd9..527c3b4 100644 --- a/src/model.ts +++ b/src/model.ts @@ -1,6 +1,5 @@ import * as THREE from "three"; -// TODO move to a util class function toFaceVertices(x1: number, y1: number, x2: number, y2: number, w: number, h: number) { return [ new THREE.Vector2(x1 / w, 1.0 - y2 / h), @@ -10,17 +9,14 @@ function toFaceVertices(x1: number, y1: number, x2: number, y2: number, w: numbe ]; } -// TODO move to a util class function toSkinVertices(x1: number, y1: number, x2: number, y2: number) { return toFaceVertices(x1, y1, x2, y2, 64.0, 64.0); } -// TODO move to a util class function toCapeVertices(x1: number, y1: number, x2: number, y2: number) { return toFaceVertices(x1, y1, x2, y2, 64.0, 32.0); } -// TODO move to a util class function setVertices(box: THREE.BoxGeometry, top: Array, bottom: Array, left: Array, front: Array, right: Array, back: Array) { box.faceVertexUvs[0] = []; @@ -38,7 +34,6 @@ function setVertices(box: THREE.BoxGeometry, top: Array, bottom: box.faceVertexUvs[0][11] = [back[0], back[1], back[2]]; } -// why is this a global constant? const esp = 0.002; export class SkinObject extends THREE.Group {