Пример #1
0
 public override Vector3 Shade(Scene scene, RaycastHit hitInfo, int maxRecursiveRaycasts)
 {
     if (maxRecursiveRaycasts <= 0) return new Vector3(0, 0, 0);
     Ray ray = ReflectedRay(hitInfo);
     return scene.SampleColor(ray, maxRecursiveRaycasts - 1);
 }