private static FogDefinition ReadFogDefinition(Stream stream) { FogDefinition fogDefinition = new FogDefinition(); fogDefinition.end = ReadFloat(stream); fogDefinition.start_scalar = ReadFloat(stream); fogDefinition.color = ReadBGRA(stream); return(fogDefinition); }
public static FogDefinition ReadFogEditions(this BinaryReader reader) { FogDefinition fog = new FogDefinition() { end = reader.ReadSingle(), start_scalar = reader.ReadSingle(), color = reader.ReadBGRA() }; return(fog); }