Esempio n. 1
0
    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);
    }
Esempio n. 2
0
        public static FogDefinition ReadFogEditions(this BinaryReader reader)
        {
            FogDefinition fog = new FogDefinition()
            {
                end          = reader.ReadSingle(),
                start_scalar = reader.ReadSingle(),
                color        = reader.ReadBGRA()
            };

            return(fog);
        }