コード例 #1
0
        }                                      //暂时只用于做动态模糊,相对于相机的速度,而动态模糊的目前处理为[0,1)*center.就是说,center为time0时刻球心,center1=center+speed*delta_time为time1时刻球心

        public Sphere(Vec3 _center, float _radius, BaseMaterial _material, Vec3 _speed = null)
        {
            center   = _center;
            radius   = _radius;
            material = _material;
            speed    = _speed;
        }
コード例 #2
0
 public HitRecord(float _t, Vec3 _hit_point, Vec3 _normal, BaseMaterial _material)
 {
     t         = _t;
     hit_point = _hit_point;
     normal    = _normal;
     material  = _material;
 }
コード例 #3
0
 public Plane(Vec3 _normal, float _d, BaseMaterial _material)
 {
     normal   = _normal;
     d        = _d;
     material = _material;
 }