Update: CC - Snake FS - Mouse Down (gzewp2awcf.js) 10 bytes modified

beta.r3js.org
-=yb4f310 2018-03-24 18:25:45 +01:00
parent 4e08746803
commit b26ee59289
1 changed files with 5 additions and 3 deletions

View File

@ -39,8 +39,9 @@ this.raycaster.getIntersectedObjects(this.buttons).map(
}
var x = Math.round(intersect.uv.x * 256);
var y = Math.round(intersect.uv.y * 256);
var y = Math.round(1 - intersect.uv.y * 256);
/*
for (var x = 0; x < 256; x++) {
var line = '';
@ -51,10 +52,11 @@ this.raycaster.getIntersectedObjects(this.buttons).map(
console.log(line);
}
*/
//var pixel = alphas[(256 * y) + x];
var pixel = alphas[(256 * y) + x];
//console.log(intersect.mesh.name + ' : ' + pixel);
console.log(intersect.mesh.name + ' : ' + pixel);
}