コード例 #1
0
ファイル: MediumInterface.cs プロジェクト: MarkZuber/pbrtnet
 public MediumInterface(Medium inside, Medium outside)
 {
     Inside  = inside;
     Outside = outside;
 }
コード例 #2
0
        protected Camera(AnimatedTransform cameraToWorld, double shutterOpen, double shutterClose, Film film, Medium medium)
        {
            CameraToWorld = cameraToWorld;
            ShutterOpen   = shutterOpen;
            ShutterClose  = shutterClose;
            Film          = film;
            Medium        = medium;

            if (CameraToWorld.HasScale())
            {
                // todo:
                //Warning(
                //  "Scaling detected in world-to-camera transformation!\n"
                //"The system has numerous assumptions, implicit and explicit,\n"
                //"that this transform will have no scale factors in it.\n"
                //"Proceed at your own risk; your image may have errors or\n"
                //"the system may crash as a result of this.");
            }
        }
コード例 #3
0
ファイル: MediumInterface.cs プロジェクト: MarkZuber/pbrtnet
 public MediumInterface(Medium medium)
 {
     Inside  = medium;
     Outside = medium;
 }