Examples of finalizePixel()


Examples of se.llbit.chunky.renderer.scene.Scene.finalizePixel()

          samples[offset+0] = (samples[offset+0] * scene.spp + sr) * sinv;
          samples[offset+1] = (samples[offset+1] * scene.spp + sg) * sinv;
          samples[offset+2] = (samples[offset+2] * scene.spp + sb) * sinv;

          if (scene.finalizeBuffer()) {
            scene.finalizePixel(x, y);
          }

          offset += 3;
        }
      }
View Full Code Here

Examples of se.llbit.chunky.renderer.scene.Scene.finalizePixel()

        if (((x+y)%2) == 0) {
          continue;
        }
      } else {
        if (((x+y)%2) != 0) {
          scene.finalizePixel(x, y);
          continue;
        }
      }

      cam.calcViewRay(ray, random,
View Full Code Here

Examples of se.llbit.chunky.renderer.scene.Scene.finalizePixel()

      samples[(y*width+x)*3+0] = ray.color.x;
      samples[(y*width+x)*3+1] = ray.color.y;
      samples[(y*width+x)*3+2] = ray.color.z;

      scene.finalizePixel(x, y);

      if (firstFrame) {
        if (y%2 == 0 && x < (width-1)) {
          // copy forward
          scene.copyPixel(y*width + x, 1);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.