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); }
public warp_Lightmap(warp_Scene scene) { scene.rebuild(); light = scene.light; lights = scene.lights; ambient = scene.environment.ambient; buildSphereMap(); rebuildLightmap(); }