Fix light data loop
This commit is contained in:
parent
12ec38ae96
commit
3a30d4d836
@ -40,7 +40,10 @@ public:
|
|||||||
for(int y=i/3*7;y<i/3*7+7;y++){
|
for(int y=i/3*7;y<i/3*7+7;y++){
|
||||||
int col=0;
|
int col=0;
|
||||||
for(int x=i%3*4;x<i%3*4+4;x++){
|
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));
|
Pixel p(pge->GetDrawTarget()->GetPixel(x,y));
|
||||||
lightData.append(1,p.r);
|
lightData.append(1,p.r);
|
||||||
lightData.append(1,p.g);
|
lightData.append(1,p.g);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user