Example #1
0
        public override Vector3 propagateRay(Ray ray, Vector3 position, Vector3 normal, int generation)
        {
            Vector3 co = original.propagateRay(ray, position, normal, generation);
            Vector3 ca = additional.propagateRay(ray, position, normal, generation);

            return(blend * ca + (Vector3.One - blend) * co);
        }
 public override Vector3 propagateRay(Ray ray, Vector3 hitPosition, Vector3 normal, int generation)
 {
     return(materialA.propagateRay(ray, hitPosition, normal, generation) + materialB.propagateRay(ray, hitPosition, normal, generation));
 }