Ejemplo n.º 1
0
        // Lightmap loader

        public void loadLightmap(Lightmap lm)
        {
            if (lm == null)
            {
                return;
            }
            diffuse        = lm.diffuse;
            specular       = lm.specular;
            lightmapLoaded = true;
            ready          = lightmapLoaded && materialLoaded;
        }
Ejemplo n.º 2
0
 public void buildLightMap()
 {
     if (lightmap == null)
     {
         lightmap = new Lightmap(scene);
     }
     else
     {
         lightmap.rebuildLightmap();
     }
     rasterizer.loadLightmap(lightmap);
 }
Ejemplo n.º 3
0
 // Lightmap loader
 public void loadLightmap(Lightmap lm)
 {
     if (lm == null) return;
     diffuse = lm.diffuse;
     specular = lm.specular;
     lightmapLoaded = true;
     ready = lightmapLoaded && materialLoaded;
 }
Ejemplo n.º 4
0
 public void buildLightMap()
 {
     if (lightmap == null) lightmap = new Lightmap(scene);
     else lightmap.rebuildLightmap();
     rasterizer.loadLightmap(lightmap);
 }