|
|
@ -225,7 +225,7 @@ Shadings.Mesh = (function MeshClosure() { |
|
|
|
|
|
|
|
|
|
|
|
var numComps = context.numComps; |
|
|
|
var numComps = context.numComps; |
|
|
|
this.tmpCompsBuf = new Float32Array(numComps); |
|
|
|
this.tmpCompsBuf = new Float32Array(numComps); |
|
|
|
var csNumComps = context.colorSpace; |
|
|
|
var csNumComps = context.colorSpace.numComps; |
|
|
|
this.tmpCsCompsBuf = context.colorFn ? new Float32Array(csNumComps) : |
|
|
|
this.tmpCsCompsBuf = context.colorFn ? new Float32Array(csNumComps) : |
|
|
|
this.tmpCompsBuf; |
|
|
|
this.tmpCompsBuf; |
|
|
|
} |
|
|
|
} |
|
|
@ -345,13 +345,10 @@ Shadings.Mesh = (function MeshClosure() { |
|
|
|
|
|
|
|
|
|
|
|
reader.align(); |
|
|
|
reader.align(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var psPacked = new Int32Array(ps); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mesh.figures.push({ |
|
|
|
mesh.figures.push({ |
|
|
|
type: 'triangles', |
|
|
|
type: 'triangles', |
|
|
|
coords: psPacked, |
|
|
|
coords: new Int32Array(ps), |
|
|
|
colors: psPacked |
|
|
|
colors: new Int32Array(ps), |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -366,13 +363,10 @@ Shadings.Mesh = (function MeshClosure() { |
|
|
|
coords.push(coord); |
|
|
|
coords.push(coord); |
|
|
|
colors.push(color); |
|
|
|
colors.push(color); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var psPacked = new Int32Array(ps); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mesh.figures.push({ |
|
|
|
mesh.figures.push({ |
|
|
|
type: 'lattice', |
|
|
|
type: 'lattice', |
|
|
|
coords: psPacked, |
|
|
|
coords: new Int32Array(ps), |
|
|
|
colors: psPacked, |
|
|
|
colors: new Int32Array(ps), |
|
|
|
verticesPerRow: verticesPerRow |
|
|
|
verticesPerRow: verticesPerRow |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|