我想將圖像中的粒子複製到精靈正方形中,落到屏幕的底部進行作業分配。我遇到的最麻煩的部分是將像素從我的背景圖像複製到我的精靈。我真的不知道如何開始,但我知道我應該包括像 for (int x=0; x< img.width; x++)
{
for (int y=0; x< img.height; y++)
{
int loc = x + y*img.widt
我創造粒子與three.js所隨機他們定位: for(var i = 0; i < particleCount; i++){
var pX = Math.random() * 100-50;
var pY =Math.random() * 100-50;
var pZ = Math.random() * 100-50;
particle = new THRE