Beispiel #1
0
 public TraceRayResult(bool success, ISceneObject intersectedObject, Vector3 intersectedPoint, VecColor resultColor)
 {
     Success           = success;
     IntersectedObject = intersectedObject;
     IntersectedPoint  = intersectedPoint;
     ResultColor       = resultColor;
 }
Beispiel #2
0
 public Light(VecColor color, double intensity)
 {
     Color     = color;
     Intensity = intensity;
 }
Beispiel #3
0
 public static TraceRayResult Fail() => new TraceRayResult(false, null, null, VecColor.FromColor(Color.SkyBlue));
Beispiel #4
0
 public DirectionLight(Vector3 direction, VecColor color, double intensity) : base(color, intensity)
 {
     Direction = direction;
     Color     = color;
     Intensity = intensity;
 }