Пример #1
0
 public void Set_Face_Normal(Ray r, Vector3 outward_normal)
 {
     this.Front_face = Vector3.Dot(r.Direction, outward_normal) < 0;
     this.Normal     = Front_face ? outward_normal : -outward_normal;
 }