void VisitToCreateLightmap()
 {
     for (int i = 0; i < LightmapSettings.lightmaps.Length; i++)
     {
         var key = i.ToString();
         if (containerTable.Contains <LightmapContainer>(key) == false)
         {
             var container = new LightmapContainer(i);
             containerTable.Add(key, container);
         }
     }
 }
Example #2
0
        void RegisterLightmap(LightmapContainer n)
        {
            // create image
            var imageNode = new ImageElem(n);

            root.SharedNodeTable.Add(imageNode, n.InstanceId);

            var texNode = new TextureElem(n);

            root.SharedNodeTable.Add(texNode, n.InstanceId);

            texNode.Image = imageNode;
        }
Example #3
0
 public TextureElem(LightmapContainer c)
 {
     SetFilterMode(c.FilterMode);
     SetWrapMode(c.WrapMode);
     Anisotropy = c.AnisoLevel;
 }
 public ImageElem(LightmapContainer c)
 {
     this.Name = c.ExportedFileName(".png");
 }
 public ImageElem(LightmapContainer c)
 {
     this.lightmapcontainer = c;
     this.Name = c.ExportedFileName(".jpg");
 }
 public ImageElem(LightmapContainer c)
 {
     this.Name = c.ExportedFileName(".png");
 }