daily pastebin goal
79%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package raytracer.impl;
  2.  
  3. import java.awt.Color;
  4.  
  5. import raytracer.math.Vector3;
  6. import raytracer.math.VectorType;
  7. import raytracer.Material;
  8.  
  9. public class Main{
  10.  
  11.    
  12.     @SuppressWarnings("unchecked")
  13.     public static void main(String[] args) {
  14.    
  15.         ParallelRenderer render = new ParallelRenderer();
  16.        
  17.         Material mat = new Material(new Color(0,0,0), 10);
  18.         TriangleImpl dreieck = new TriangleImpl
  19.             (mat, new Vector3(1,0,0,VectorType.POSITION), new Vector3(0,1,0,VectorType.POSITION), new Vector3(0,0,1,VectorType.POSITION));
  20.         PinholeCamera cam = new PinholeCamera
  21.             (new Vector3(0,0,0,VectorType.POSITION), new Vector3(0.5,0,0,VectorType.DIRECTION).normalize(), Vector3.UNIT_Y, 10, Vector3.UNIT_Z, 10);
  22.         render.render(dreieck, cam, new DummyImage());
  23.        
  24.     }
  25.  
  26. }
RAW Paste Data
Top