Exemplo n.º 1
0
 public RayCaster(DirectBitmap directBitmap, Camera camera, double fov)
 {
     _directBitmap = directBitmap;
     _camera       = camera;
     _fov          = fov;
 }
Exemplo n.º 2
0
 public Pipeline(Camera camera, double fov, double near, double far, ObjectsController objectsController, DirectBitmap bitmap, Cursor3D cursor)
 {
     _camera            = camera;
     _fov               = (float)fov;
     _near              = (float)near;
     _far               = (float)far;
     _objectsController = objectsController;
     _bitmap            = bitmap;
     _aspectRatio       = (float)_bitmap.Width / _bitmap.Height;
     _cursor            = cursor;
 }