Пример #1
0
        public override Vector2d GetUVCoordinates(IIntersectionResult intersectionResult)
        {
            QuadIntersectionResult quadIntersectionResult = intersectionResult as QuadIntersectionResult;

            return(quadIntersectionResult.TriangleObjectIntersectionResult.Object.GetUVCoordinates(quadIntersectionResult.TriangleObjectIntersectionResult));
        }
Пример #2
0
        public override Color GetColor(Vector3d direction, IIntersectionResult intersectionResult, Scene scene)
        {
            QuadIntersectionResult quadIntersectionResult = intersectionResult as QuadIntersectionResult;

            return(quadIntersectionResult.TriangleObjectIntersectionResult.Object.GetColor(direction, quadIntersectionResult.TriangleObjectIntersectionResult, scene));
        }
Пример #3
0
        public override Vector3d GetNormal(IIntersectionResult intersectionResult)
        {
            QuadIntersectionResult quadIntersectionResult = intersectionResult as QuadIntersectionResult;

            return(quadIntersectionResult.TriangleObjectIntersectionResult.Object.GetNormal(quadIntersectionResult.TriangleObjectIntersectionResult));
        }