363364365366367368369370371372373
for (int s = -1, t = k; s <= k; s++, t--) { Path y = x.slice(s, t); if (y != null) { Color color = importance.evaluate(y.getLightTail(), y.getEyeTail()); c[s + 1] = color != null ? color.luminance() : 0.0; // FIXME use a ColorMeasure } } return c; }
429430431432433434435436437438439
if (c != null) { // synchronized (contribList) { // contribList.add((float) c.luminance()); // } if (c.luminance() < 0.0) { bp(); } } return c;
469470471472473474475476477478479
c = ColorUtil.mul(c, weight * w); if (c != null) { // synchronized (contribList) { // contribList.add((float) c.luminance()); // } if (c.luminance() < 0.0) { bp(); } RasterUtil.addPixel(raster.get(), p, c); } }