public override void Write(AssetWriter writer) { base.Write(writer); SplatDatabase.Write(writer); DetailDatabase.Write(writer); Heightmap.Write(writer); if (HasLightmap(writer.Version)) { Lightmap.Write(writer); } }
public void Write(AssetWriter writer) { Lightmap.Write(writer); if (HasIndirectLightmap(writer.Version)) { IndirectLightmap.Write(writer); } if (HasLightInd(writer.Version)) { LightInd.Write(writer); DirInd.Write(writer); } if (HasDirLightmap(writer.Version)) { DirLightmap.Write(writer); ShadowMask.Write(writer); } }