Package se.llbit.chunky.renderer.scene

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


    double[] samples = scene.getSampleBuffer();
    final Camera cam = scene.camera();

    long jobStart = System.nanoTime();

    if (scene.pathTrace()) {

      // this is intentionally incorrectly indented for readability
      for (int y = y0; y < y1; ++y) {
        int offset = y * width * 3 + x0 * 3;
        for (int x = x0; x < x1; ++x) {
View Full Code Here


            double ox = random.nextDouble();

            cam.calcViewRay(ray, random, (-halfWidth + (x + ox)
                / height), (-.5 + (y + oy) / height));

            scene.pathTrace(state);

            sr += ray.color.x;
            sg += ray.color.y;
            sb += ray.color.z;
          }
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.