Beispiel #1
0
 public void Read(AssetReader reader)
 {
     Lightmap.Read(reader);
     if (IsReadDirLightmap(reader.Version))
     {
         DirLightmap.Read(reader);
     }
     if (IsReadShadowMask(reader.Version))
     {
         ShadowMask.Read(reader);
     }
 }
Beispiel #2
0
        public override void Read(AssetStream stream)
        {
            base.Read(stream);

            SplatDatabase.Read(stream);
            DetailDatabase.Read(stream);
            Heightmap.Read(stream);
            if (IsReadLightmap(stream.Version))
            {
                Lightmap.Read(stream);
            }
        }
Beispiel #3
0
        public override void Read(AssetReader reader)
        {
            base.Read(reader);

            SplatDatabase.Read(reader);
            DetailDatabase.Read(reader);
            Heightmap.Read(reader);
            if (IsReadLightmap(reader.Version))
            {
                Lightmap.Read(reader);
            }
        }
Beispiel #4
0
 public void Read(AssetStream stream)
 {
     Lightmap.Read(stream);
     if (IsReadDirLightmap(stream.Version))
     {
         DirLightmap.Read(stream);
     }
     if (IsReadShadowMask(stream.Version))
     {
         ShadowMask.Read(stream);
     }
 }
Beispiel #5
0
        public override void Read(AssetReader reader)
        {
            base.Read(reader);

            SplatDatabase.Read(reader);
            DetailDatabase.Read(reader);
            Heightmap.Read(reader);
            if (HasLightmap(reader.Version))
            {
                Lightmap.Read(reader);
            }
            if (HasPreloadShaders(reader.Version))
            {
                PreloadShaders = reader.ReadAssetArray <PPtr <Shader> >();
            }
        }
Beispiel #6
0
 public void Read(AssetReader reader)
 {
     Lightmap.Read(reader);
     if (HasIndirectLightmap(reader.Version))
     {
         IndirectLightmap.Read(reader);
     }
     if (HasLightInd(reader.Version))
     {
         LightInd.Read(reader);
         DirInd.Read(reader);
     }
     if (HasDirLightmap(reader.Version))
     {
         DirLightmap.Read(reader);
         ShadowMask.Read(reader);
     }
 }