allow multiple trace ops with different settings

This commit is contained in:
Stewart Allen 2020-12-24 12:59:57 -05:00
commit 46c225cd73
9 changed files with 95 additions and 280 deletions

View file

@ -319,6 +319,11 @@
let poly = BASE.newPolygon(),
vid = 0;
// if passed a normal array, convert to float32
if (v.array.toFloat32) {
v.array = v.array.toFloat32();
}
while (vid < v.array.length) {
poly.push(BASE.newPoint(v.array[vid++], v.array[vid++], v.array[vid++]));
}