Examples of calcViewRay()


Examples of se.llbit.chunky.renderer.scene.Camera.calcViewRay()

          for (int i = 0; i < RenderConstants.SPP_PASS; ++i) {
            double oy = random.nextDouble();
            double ox = random.nextDouble();

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

            scene.pathTrace(state);

            sr += ray.color.x;
View Full Code Here

Examples of se.llbit.chunky.renderer.scene.Camera.calcViewRay()

          scene.finalizePixel(x, y);
          continue;
        }
      }

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

      scene.quickTrace(state);
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.