Update: CC - Snake FS - Mouse Down (gzewp2awcf.js) 10 bytes modified
parent
4e08746803
commit
b26ee59289
|
@ -39,8 +39,9 @@ this.raycaster.getIntersectedObjects(this.buttons).map(
|
||||||
}
|
}
|
||||||
|
|
||||||
var x = Math.round(intersect.uv.x * 256);
|
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++) {
|
for (var x = 0; x < 256; x++) {
|
||||||
|
|
||||||
var line = '';
|
var line = '';
|
||||||
|
@ -51,10 +52,11 @@ this.raycaster.getIntersectedObjects(this.buttons).map(
|
||||||
|
|
||||||
console.log(line);
|
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);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue