new float array

beta.r3js.org
-=yb4f310 2017-11-29 22:26:42 +01:00
parent 1b2af2fba8
commit 011ae97d3e
3 changed files with 9 additions and 9 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
// COMPILE TIME DEFINITIONS (Generated via gulp)
var __DATE__ = "Wed Nov 29 2017 22:24:30 GMT+0100 (CET)";
var __DATE__ = "Wed Nov 29 2017 22:26:34 GMT+0100 (CET)";
// END COMPILE TIME DEFINITIONS
/**
@ -13762,7 +13762,7 @@ GameLib.D3.Mesh.prototype.createInstanceGeometry = function(instanceGeometry) {
/**
* Setyp mesh vertices colors
*/
var colors = Float32Array.from(
var colors = new Float32Array(
this.faces.reduce(
function(result, face){
result.push(1,1,1,1,1,1,1,1,1);
@ -13785,7 +13785,7 @@ GameLib.D3.Mesh.prototype.createInstanceGeometry = function(instanceGeometry) {
/**
* Setup face UVs
*/
var uvs = Float32Array.from(
var uvs = new Float32Array(
this.faces.reduce(
function(result, face) {
@ -13803,7 +13803,7 @@ GameLib.D3.Mesh.prototype.createInstanceGeometry = function(instanceGeometry) {
);
geometry.addAttribute('uv', new THREE.BufferAttribute(uvs, 2));
var normals = Float32Array.from(
var normals = new Float32Array(
this.faces.reduce(
function(result, face) {

View File

@ -281,7 +281,7 @@ GameLib.D3.Mesh.prototype.createInstanceGeometry = function(instanceGeometry) {
/**
* Setyp mesh vertices colors
*/
var colors = Float32Array.from(
var colors = new Float32Array(
this.faces.reduce(
function(result, face){
result.push(1,1,1,1,1,1,1,1,1);
@ -304,7 +304,7 @@ GameLib.D3.Mesh.prototype.createInstanceGeometry = function(instanceGeometry) {
/**
* Setup face UVs
*/
var uvs = Float32Array.from(
var uvs = new Float32Array(
this.faces.reduce(
function(result, face) {
@ -322,7 +322,7 @@ GameLib.D3.Mesh.prototype.createInstanceGeometry = function(instanceGeometry) {
);
geometry.addAttribute('uv', new THREE.BufferAttribute(uvs, 2));
var normals = Float32Array.from(
var normals = new Float32Array(
this.faces.reduce(
function(result, face) {