Пример #1
0
        public void IsShadowedObjectBetweenPointAndLight()
        {
            var world = new DefaultWorld();
            var point = new Point(10, -10, 10);

            Assert.True(world.IsShadowed(point, world.Lights[0]));
        }
Пример #2
0
        public void IsShadowedPointBetweenLightAndObject()
        {
            var world = new DefaultWorld();
            var point = new Point(-2, 2, -2);

            Assert.False(world.IsShadowed(point, world.Lights[0]));
        }
Пример #3
0
        public void IsShadowed()
        {
            var world = new DefaultWorld();
            var point = new Point(0, 10, 0);

            Assert.False(world.IsShadowed(point, world.Lights[0]));
        }