Fix light data loop

master
sigonasr2 1 year ago
parent 12ec38ae96
commit 3a30d4d836
  1. 5
      sample/PGEX_SMX.h

@ -40,7 +40,10 @@ public:
for(int y=i/3*7;y<i/3*7+7;y++){
int col=0;
for(int x=i%3*4;x<i%3*4+4;x++){
if(row%2&&col%4==0)continue;
if(row%2==1&&col%4==0){
col++;
continue;
}
Pixel p(pge->GetDrawTarget()->GetPixel(x,y));
lightData.append(1,p.r);
lightData.append(1,p.g);

Loading…
Cancel
Save