public void Read(AssetStream stream) { Lightmap.Read(stream); if (IsReadDirLightmap(stream.Version)) { DirLightmap.Read(stream); } if (IsReadShadowMask(stream.Version)) { ShadowMask.Read(stream); } }
public void Read(AssetReader reader) { Lightmap.Read(reader); if (IsReadDirLightmap(reader.Version)) { DirLightmap.Read(reader); } if (IsReadShadowMask(reader.Version)) { ShadowMask.Read(reader); } }
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); } }