Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/operations/COM_GlareSimpleStarOperation.cpp
| Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Lines | for (y = 0; y < this->getHeight() && (!breaked); y++) { | ||||
| c[3] = 1.0f; | c[3] = 1.0f; | ||||
| tbuf2->writePixel(x, y, c); | tbuf2->writePixel(x, y, c); | ||||
| } | } | ||||
| if (isBreaked()) { | if (isBreaked()) { | ||||
| breaked = true; | breaked = true; | ||||
| } | } | ||||
| } | } | ||||
| // // B | // // B | ||||
| for (y = tbuf1->getHeight() - 1 && (!breaked); y >= 0; y--) { | for (y = this->getHeight() - 1; y >= 0 && (!breaked); y--) { | ||||
| ym = y - i; | ym = y - i; | ||||
| yp = y + i; | yp = y + i; | ||||
| for (x = tbuf1->getWidth() - 1; x >= 0; x--) { | for (x = this->getWidth() - 1; x >= 0; x--) { | ||||
| xm = x - i; | xm = x - i; | ||||
| xp = x + i; | xp = x + i; | ||||
| tbuf1->read(c, x, y); | tbuf1->read(c, x, y); | ||||
| mul_v3_fl(c, f1); | mul_v3_fl(c, f1); | ||||
| tbuf1->read(tc, (settings->star_45 ? xm : x), ym); | tbuf1->read(tc, (settings->star_45 ? xm : x), ym); | ||||
| madd_v3_v3fl(c, tc, f2); | madd_v3_v3fl(c, tc, f2); | ||||
| tbuf1->read(tc, (settings->star_45 ? xp : x), yp); | tbuf1->read(tc, (settings->star_45 ? xp : x), yp); | ||||
| madd_v3_v3fl(c, tc, f2); | madd_v3_v3fl(c, tc, f2); | ||||
| Show All 25 Lines | |||||