Ejemplo n.º 1
0
            public static LightingSettings ReadLightingSettings(this SCMap scMap)
            {
                LightingSettings lightingSettings = new LightingSettings();

                lightingSettings.bgTexturePath      = scMap.ReadString();
                lightingSettings.skyCubeMapPath     = scMap.ReadString();
                lightingSettings.envCubeMap         = scMap.ReadString();
                lightingSettings.lightingMultiplier = scMap.ReadFloat();
                lightingSettings.sunDirection       = scMap.ReadVector3();
                lightingSettings.sunAmbience        = scMap.ReadColorRGB();
                lightingSettings.sunColor           = scMap.ReadColorRGB();
                lightingSettings.shadowColor        = scMap.ReadColorRGB();
                lightingSettings.specularColor      = scMap.ReadColorRGBA();
                lightingSettings.bloom = scMap.ReadFloat();
                return(lightingSettings);
            }
Ejemplo n.º 2
0
            public static FogSettings ReadFogSettings(this SCMap scMap)
            {
                FogSettings fogSettings = new FogSettings();

                fogSettings.fogColor = scMap.ReadColorRGB();
                fogSettings.fogStart = scMap.ReadFloat();
                fogSettings.fogEnd   = scMap.ReadFloat();
                return(fogSettings);
            }