Exemplo n.º 1
0
        public void ObjectBehindPoint()
        {
            var world = WorldBuilder.DefaultWorld();
            var point = Tuple.Point(-2, 2, -2);

            Assert.IsFalse(ShadowUtil.IsShadowed(world, point));
        }
Exemplo n.º 2
0
        public void InShadow()
        {
            var world = WorldBuilder.DefaultWorld();
            var point = Tuple.Point(10, -10, 10);

            Assert.IsTrue(ShadowUtil.IsShadowed(world, point));
        }
Exemplo n.º 3
0
        public void BehindLight()
        {
            var world = WorldBuilder.DefaultWorld();
            var point = Tuple.Point(-20, 20, -20);

            Assert.IsFalse(ShadowUtil.IsShadowed(world, point));
        }
Exemplo n.º 4
0
        public void NoShadow()
        {
            var world = WorldBuilder.DefaultWorld();
            var point = Tuple.Point(0, 10, 0);

            Assert.IsFalse(ShadowUtil.IsShadowed(world, point));
        }