Update: CC - Snake FS - Mouse Down (gzewp2awcf.js) 220 bytes modified
parent
0ced387b6c
commit
4e08746803
|
@ -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++) {
|
||||
|
||||
console.log(intersect.mesh.name + ' : ' + pixel);
|
||||
var line = '';
|
||||
|
||||
for (var y = 0; y < 256; y++) {
|
||||
line += alphas[(256 * y) + x];
|
||||
}
|
||||
|
||||
console.log(line);
|
||||
}
|
||||
|
||||
//var pixel = alphas[(256 * y) + x];
|
||||
|
||||
//console.log(intersect.mesh.name + ' : ' + pixel);
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue