Beispiel #1
0
        private void ReadLightmaps()
        {
            BSP.BaseStream.Seek(header.Directory[14].Offset, SeekOrigin.Begin);
            // a lightmap is 49152 bytes.  pretty big.  there are length/49152 lightmaps in the lump
            int lmapCount = header.Directory[14].Length / 49152;

            lightMapLump = new LightmapLump(lmapCount);
            for (int i = 0; i < lmapCount; i++)
            {
                lightMapLump.lightMaps[i] = LightmapLump.CreateLightMap(BSP.ReadBytes(49152));
            }
        }
Beispiel #2
0
 private void ReadLightmaps()
 {
     BSP.BaseStream.Seek(header.Directory [14].Offset, SeekOrigin.Begin);
     // a lightmap is 49152 bytes.  pretty big.  there are length/49152 lightmaps in the lump
     int lmapCount = header.Directory [14].Length / 49152;
     lightmapLump = new LightmapLump(lmapCount);
     for (int i = 0; i < lmapCount; i++)
     {
         lightmapLump.Lightmaps [i] = LightmapLump.CreateLightmap(BSP.ReadBytes(49152));
     }
 }