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

beta.r3js.org
-=yb4f310 2018-03-24 18:24:12 +01:00
parent 0ced387b6c
commit 4e08746803
1 changed files with 14 additions and 2 deletions

View File

@ -7,6 +7,7 @@ if (!this.initialized) {
this.camera = this.entityLoaded.camera;
this.buttons = this.entityLoaded.buttons;
this.raycaster = this.entityLoaded.raycaster;
this.canvasHUD = this.entityLoaded.canvasHUD;
this.initialized = true;
}
@ -40,9 +41,20 @@ this.raycaster.getIntersectedObjects(this.buttons).map(
var x = Math.round(intersect.uv.x * 256);
var y = Math.round(intersect.uv.y * 256);
var pixel = alphas[(256 * y) + x];
for (var x = 0; x < 256; x++) {
var line = '';
for (var y = 0; y < 256; y++) {
line += alphas[(256 * y) + x];
}
console.log(line);
}
console.log(intersect.mesh.name + ' : ' + pixel);
//var pixel = alphas[(256 * y) + x];
//console.log(intersect.mesh.name + ' : ' + pixel);
}