Beispiel #1
0
        public bool AddSphere(string name, float radius, int segments)
        {
            if (_scene == null)
            {
                return(false);
            }

            warp_Object o = warp_ObjectFactory.SPHERE(radius, segments);

            if (o == null)
            {
                return(false);
            }

            _scene.addObject(name, o);
            _scene.rebuild();

            return(true);
        }
Beispiel #2
0
        public warp_Lightmap(warp_Scene scene)
        {
            scene.rebuild();

            light   = scene.light;
            lights  = scene.lights;
            ambient = scene.environment.ambient;

            buildSphereMap();
            rebuildLightmap();
        }