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

			rasterizer.loadLightmap (lightmap);
		}
        public void buildLightMap()
        {
            if (lightmap == null)
            {
                lightmap = new warp_Lightmap(scene);
            }
            else
            {
                lightmap.rebuildLightmap();
            }

            rasterizer.loadLightmap(lightmap);
        }
Esempio n. 4
0
		// Lightmap loader
		public void loadLightmap (warp_Lightmap lm)
		{
			if (lm == null)
				return;
			diffuse = lm.diffuse;
			specular = lm.specular;
			lightmapLoaded = true;
			ready = lightmapLoaded && materialLoaded;
		}